CN111984890B - Method, device, medium and electronic equipment for generating display information - Google Patents
Method, device, medium and electronic equipment for generating display information Download PDFInfo
- Publication number
- CN111984890B CN111984890B CN202010631926.6A CN202010631926A CN111984890B CN 111984890 B CN111984890 B CN 111984890B CN 202010631926 A CN202010631926 A CN 202010631926A CN 111984890 B CN111984890 B CN 111984890B
- Authority
- CN
- China
- Prior art keywords
- rendering
- result data
- data
- group
- search
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000009877 rendering Methods 0.000 claims abstract description 251
- 230000004044 response Effects 0.000 claims abstract description 27
- 230000005540 biological transmission Effects 0.000 claims abstract description 26
- 230000011218 segmentation Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 9
- 230000000903 blocking effect Effects 0.000 abstract description 15
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure provides a method, a device, a medium and electronic equipment for generating display information. The method and the device respond to the same search request, and respectively transmit the page frame structure information and rendering result data which consume different system resources to the terminal, so that the terminal can display the page frame structure information first, thereby avoiding the phenomenon of 'white screen' of the terminal page waiting for a long time, and improving the response speed of the terminal page. Meanwhile, the rendering result data are transmitted in a blocking sequence, so that the blocking phenomenon of the transmission data is avoided, the waiting time of data transmission is reduced, the smoothness of terminal page display is ensured, and the user experience is improved.
Description
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to a method, a device, a medium and electronic equipment for generating display information.
Background
An internet search, comprising: information collection, information arrangement and user inquiry. To help people search for the required information in the vast network.
Generally, a terminal transmits a search request to a server, and the server packages and transmits page frame structure information and rendering result data in response to the search request to the terminal. However, due to the difference of occupying system resources, the server acquires the structure information of the page frame and the rendering result data, and when the rendering result data volume is large, the phenomenon of 'white screen' of a terminal page waiting for a long time is often caused.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The disclosure aims to provide a method, a device, a medium and an electronic device for generating display information, which can solve at least one technical problem. The specific scheme is as follows:
according to a specific embodiment of the present disclosure, in a first aspect, the present disclosure provides a method for generating display information, including:
responding to the search request, generating page framework structure information and sending the page framework structure information to the terminal;
Acquiring a plurality of groups of search result data based on the search request, rendering each group of search result data, and generating rendering result data;
Sequentially dividing each group of rendering result data into a plurality of rendering data blocks, and setting the group of characteristic marks in the plurality of rendering data blocks corresponding to each group of rendering result data;
And transmitting the rendering data block to a terminal based on the segmentation order.
According to a second aspect of the specific embodiments of the present disclosure, the present disclosure provides a method for generating display information, including:
Receiving a plurality of rendering data blocks returned in response to the search request; wherein a portion of the rendered data block carries the set of signature tags;
Splicing the rendering data blocks based on the set of feature markers to generate at least one set of rendering result data;
Responsive to the generation of the at least one set of rendering result data, displaying search results on a search results page based on the at least one set of rendering result data; wherein the search results page is generated based on page frame structure information.
According to a third aspect of the present disclosure, there is provided an apparatus for generating display information, including:
The page frame structure information unit is used for responding to the search request, generating page frame structure information and transmitting the page frame structure information to the terminal;
The rendering unit is used for acquiring a plurality of groups of search result data based on the search request, rendering each group of search result data and generating rendering result data;
The segmentation and marking unit is used for sequentially segmenting each group of rendering result data into a plurality of rendering data blocks, and setting the group of characteristic marks in the plurality of rendering data blocks corresponding to each group of rendering result data;
And the transmission unit is used for transmitting the rendering data block to the terminal based on the segmentation sequence.
According to a fourth aspect of the specific embodiments of the present disclosure, the present disclosure provides an apparatus for generating display information, including:
A rendering data block unit for receiving a plurality of rendering data blocks returned in response to the search request; wherein a portion of the rendered data block carries the set of signature tags;
the splicing unit is used for splicing the rendering data blocks based on the group of characteristic marks and generating at least one group of rendering result data;
A display search result unit, configured to respond to the generation of the at least one set of rendering result data, and display a search result on a search result page based on the at least one set of rendering result data; wherein the search results page is generated based on page frame structure information.
According to a fifth aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of display information generation as in any of the first or second aspects.
According to a sixth aspect of particular embodiments of the present disclosure, the present disclosure provides an electronic device, comprising: one or more processors; storage means for storing one or more programs which when executed by the one or more processors cause the one or more processors to implement the method of display information generation as claimed in any of the first or second aspects.
Compared with the prior art, the scheme of the embodiment of the disclosure has at least the following beneficial effects:
The disclosure provides a method, a device, a medium and electronic equipment for generating display information. The method and the device respond to the same search request, and respectively transmit the page frame structure information and rendering result data which consume different system resources to the terminal, so that the terminal can display the page frame structure information first, thereby avoiding the phenomenon of 'white screen' of the terminal page waiting for a long time, and improving the response speed of the terminal page. Meanwhile, the rendering result data are transmitted in a blocking sequence, so that the blocking phenomenon of the transmission data is avoided, the waiting time of data transmission is reduced, the smoothness of terminal page display is ensured, and the user experience is improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale. In the drawings:
FIG. 1 illustrates a flow chart of a method of display information generation according to an embodiment of the present disclosure;
FIG. 2 illustrates a search results page of a method of display information generation according to an embodiment of the present disclosure;
FIG. 3 illustrates a data flow diagram of a method of display information generation in accordance with an embodiment of the present disclosure;
FIG. 4 illustrates a flow chart of another method of display information generation according to an embodiment of the present disclosure;
FIG. 5 shows a block diagram of a unit of an apparatus for display information generation according to an embodiment of the present disclosure;
FIG. 6 illustrates a block diagram of a unit of another display information generating apparatus according to an embodiment of the present disclosure;
Fig. 7 shows a schematic diagram of an electronic device connection structure according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Alternative embodiments of the present disclosure are described in detail below with reference to the drawings.
The first embodiment provided in the present disclosure is an embodiment of a method for generating display information.
Embodiments of the present disclosure are described in detail below with reference to fig. 1 through 3.
As shown in fig. 1, in step S101, page frame structure information is generated and transmitted to a terminal in response to a search request.
The page frame structure information divides the web browser window into a plurality of functional areas, which independently display rendering result data of different functions. For example, as shown in fig. 2, when the user interface inputs the front end client in the search field of an independent page, a new independent page is generated in the user interface, and page frame structure information and rendering result data are acquired from the server; the functional area in the page framework structure information comprises: "search field region", "sort field region", "search result region", and "paging region"; and a plurality of groups of rendering result data sequentially displayed from top to bottom in a search result area, wherein each group of rendering result data comprises: searching topics, indexing, picture display, simple introduction and release time; if the rendering result data of one page is obtained to exceed the first screen display area (namely, the rendering result data which is firstly displayed in the user interface after the page is refreshed), the rest rendering result data of the page is required to be checked in a mode of scrolling the window display area; if the queried rendering result data exceeds the limit of one page, the rendering result data is divided into a plurality of pages for display, a designated page request can be sent through a paging area page turning function, and the rendering result data of the corresponding page is checked under the same page frame structure information.
Generally, a terminal transmits a search request to a server, and the server packages and transmits page frame structure information and rendering result data in response to the search request to the terminal. However, due to the difference of occupying system resources, there is a time difference between the server side acquiring the page frame structure information and rendering result data. The acquisition of the page framework structure information occupies less system resources, and the time for acquiring the result is generally less than 100 milliseconds; and the rendering result data associated with the page framework structure information is acquired, the dependent system resources are more, the speed is slower, and about 1000 milliseconds are generally required. In particular, the more rendering result data, the longer the delay time. Therefore, as shown in fig. 3, since the system resources on which the acquired page frame structure information depends are less, the rendering server firstly transmits the acquired page frame structure information to the terminal after receiving the search request, and then transmits the rendering result data to the terminal, thereby avoiding the phenomenon of 'white screen' of long-time waiting on the page of the terminal.
For example, as shown in fig. 2 and 3, a block transmission coding technology (i.e., chunked transmission technology) and a server rendering technology (english full name SERVER SIDE RENDERING, abbreviated as SSR) are adopted to complete the rendering task in response to the search request. When a user interface inputs a front-end client in a search column of an independent page, searching is carried out, and a user terminal sends a search request for searching the front-end client to a rendering server; after the rendering server acquires the search request information, firstly, the page frame structure information occupying less system resources is transmitted back to the terminal, and the terminal displays the page frame structure information on a user interface; the rendering server side obtains the page frame structure information and simultaneously sends search information associated with a front-end client side to the data server side; when a plurality of groups of search result data exist and the data volume is large, the process of acquiring all the search result data occupies more system resources and consumes longer time; in order to reduce the rendering burden of the terminal, rendering all the search result data at the rendering server by adopting SSR to generate rendering result data; meanwhile, in order to meet the requirement of page paging display of a user, dividing all rendering result data into a plurality of groups according to the requirement of page display; in order to avoid the phenomenon of 'white screen' of a terminal page waiting for a long time, the response speed of the terminal page is improved, rendering result data of each page is divided into a plurality of rendering data blocks by adopting a chunked transmission technology, and the rendering data blocks are transmitted to the terminal in a blocking sequence.
Chunked the transmission technique, introduced in HTTP1.1, is a data transmission mechanism that allows the data sent by the HTTP server to the terminal to be split into blocks and end up marked with a block of length 0. The designation "Transfer-Encoding: chunked" can be seen in the header of the chunk Transfer request. By means of this technique, progressive data transmission can be achieved.
The SSR is a front-end rendering technology, and the rendering work is uniformly completed by the server, so that the rendering speed difference of different mobile devices is avoided.
Step S102, multiple groups of search result data are obtained based on the search request, each group of search result data is rendered, and rendering result data are generated. As shown in fig. 3, after obtaining the search request, the rendering server sends search information corresponding to the search request to the data server. And the data server returns a plurality of groups of search result data to the rendering server based on the search information. The search result data are ordered according to the relevance with the search request, the ordered search result data are divided into a plurality of groups to obtain a plurality of groups of search result data, and the search result data are ordered, so that each group of search result data is also ordered. And when rendering, sequentially rendering each group of search result data to generate rendering result data. In order to avoid the phenomenon of 'white screen' of a terminal page waiting for a long time, the response speed of the terminal page is improved, and the embodiment of the disclosure sequentially divides each group of rendering result data into a plurality of rendering data blocks and sequentially transmits the rendering data blocks to the terminal in a blocking manner. The rendering result data is transmitted in a blocking sequence, so that the blocking phenomenon of the transmission data is avoided, the waiting time of data transmission is reduced, the smoothness of terminal page display is ensured, and the user experience is improved.
Because the system resources on which the rendering result data is acquired are more, the process of acquiring the rendering result data is slower, and therefore, the rendering result data is independently transmitted to the terminal in the embodiment of the disclosure.
In order to ensure that the user page can display the rendering result data according to the sequence of each group of search result data, besides dividing each group of rendering result data into rendering data blocks in sequence, the rendering data blocks are required to carry the characteristic marks of the group, so that the terminal can restore the received rendering data blocks into original rendering result data.
Step S103, sequentially dividing each set of rendering result data into a plurality of rendering data blocks, and setting the feature markers in the plurality of rendering data blocks corresponding to each set of rendering result data.
In order to prevent the phenomenon of blocking of the terminal receiving data caused by overlong transmission data, the embodiment of the disclosure sequentially divides each group of rendering result data into a plurality of rendering data blocks, and adopts a blocking sequential transmission mode to avoid blocking, so that the waiting time of data transmission is reduced, and the smoothness of terminal page display is ensured.
Specifically, the sequentially dividing the rendering result data into a plurality of rendering data blocks includes the following steps:
step S103-11, determining the segmentation and transmission priority of each group of the search result data according to the ordering of the plurality of groups of the search result data.
In order to ensure that the user page can display the rendering result data in the order of each set of search result data, it is necessary to determine the priority of all search result data division and transmission, that is, the order in which each set of search result data is acquired according to the search condition of the search information.
And step S103-12, dividing the search result data based on the priority, and generating a plurality of rendering data blocks.
When the search result data is divided according to the priority, the rendering result data is also required to be divided sequentially, and the group of characteristic marks are added to the rendering data block on the basis of the priority, so that the terminal can restore the received rendering data block to the original rendering result data. Therefore, in order to enable the terminal to splice the rendering data blocks into the rendering result data of the corresponding group after receiving the rendering data blocks, the embodiment of the present disclosure sets the present group feature flag in the rendering data blocks for marking the group corresponding to the rendering data blocks.
Specifically, the setting of the set of feature markers in the plurality of rendering data blocks corresponding to each set of rendering result data includes the following steps:
Step S103-21, the characteristic marks of the group are respectively set at the starting position of the first rendering data block and the ending position of the last rendering data block of each group of rendering result data.
For each set of search result data, if the search result data is divided according to the above-mentioned priority, and the rendering data blocks are transferred according to the above-mentioned priority, the present set of feature markers need only be set at the start position of the first rendering data block and the end position of the last rendering data block, respectively, of the sequential division. The terminal can splice corresponding rendering result data according to the rule.
For example, there is a set of search result DATa "< div > < span > A </div >", the present set of features of which are labeled "< FRAGMENT-DATA-A >"; dividing the set of search result data, then generating three rendered data blocks:
<div
><span>A</spa
n></div>;
setting the feature marks of the group at the starting position of the first rendering data block "< div", and setting the feature marks of the group at the ending position of the last rendering data block "n > </div >", generating three final rendering data blocks:
<FRAGMENT-DATA-A><div
><span>A</spa
n></div><FRAGMENT-DATA-A>。
Step S104, the rendering data block is transmitted to the terminal based on the segmentation sequence.
According to the embodiment of the disclosure, the same search request is responded, and the page frame structure information and rendering result data which consume different system resources are respectively transmitted to the terminal, so that the terminal can display the page frame structure information first, the phenomenon of 'white screen' of a terminal page waiting for a long time is avoided, and the response speed of the terminal page is improved. Meanwhile, the rendering result data are transmitted in a blocking sequence, so that the blocking phenomenon of the transmission data is avoided, the waiting time of data transmission is reduced, the smoothness of terminal page display is ensured, and the user experience is improved.
In association with the first embodiment provided by the present disclosure, the present disclosure also provides a second embodiment, i.e., another method of generating display information. Since the second embodiment is related to the first embodiment, the description is relatively simple, and the relevant parts are referred to the corresponding description of the first embodiment.
Embodiments of the present disclosure are described in detail below with reference to fig. 2 through 4.
As shown in fig. 4, in step S400, page frame structure information returned in response to a search request is received, and the search result page is displayed based on the page frame structure information.
According to the embodiment of the disclosure, the first received page frame structure information is displayed on the terminal, so that the phenomenon of 'white screen' of a terminal page waiting for a long time is avoided.
Step S401, receiving a plurality of rendering data blocks returned in response to the search request.
As shown in fig. 3, the rendering server transmits the rendering data blocks to the terminal according to the block sequential transmission manner, and the terminal receives the rendering data blocks according to the priority block sequential of the first embodiment.
Wherein a portion of the rendered data block carries the set of signature.
For example, if the search result data of the rendering server is divided according to the priority of the first embodiment and the divided rendering data blocks are transmitted according to the priority, the rendering server only needs to set the set of feature markers at the start position of the first rendering data block and the end position of the last rendering data block that are sequentially divided, respectively.
Step S402, stitching the rendering data blocks based on the set of feature markers, and generating at least one set of rendering result data.
Optionally, the method comprises the following steps:
Step S402-1, based on the set of feature markers, searches for a first rendering data block and a last rendering data block corresponding to at least one set of rendering result data in the plurality of rendering data blocks.
For example, in a first embodiment, there is a set of search result DATa "< div > < span > A </div >", this set of features being labeled "< FRAGMENT-DATA-A >"; the three rendering data blocks generated are:
<FRAGMENT-DATA-A><div
><span>A</spa
n></div><FRAGMENT-DATA-A>;
Wherein the first rendering DATa block is "< FRAGMENT-DATa > < div", and the last rendering DATa block is "n > </div > < FRAGMENT-DATA-A >".
Step S402-2, determining a plurality of sequentially received rendering data blocks corresponding to the at least one set of rendering result data based on the first rendering data block and the last rendering data block.
Because the three rendering data blocks are sequentially received, after the first rendering data block and the last rendering data block are determined, the rendering data block received therein is the rendering data block in the same group as the first rendering data block and the last rendering data block.
For example, continuing with the example above, the rendering data block "> < span > A </span" is the same set as the first rendering data block and last rendering data block described above.
And step S402-3, sequentially splicing the rendering data blocks to generate at least one group of rendering result data.
And sequentially splicing the group of rendering data blocks based on the receiving sequence, so that the rendering result data of the corresponding group can be obtained. For example, continuing with the above example, the rendering result data of the corresponding group is "< div > < span > A </div >".
Step S403, in response to the generation of the at least one set of rendering result data, displaying the search result on the search result page based on the at least one set of rendering result data.
Wherein the search results page is generated based on page frame structure information.
For example, as shown in fig. 2, the functional area provided by the page frame structure information in the search result page includes: "search field region", "sort field region", "search result region", and "paging region"; for rendering result data in the "search result area," embodiments of the present disclosure display one page of restored rendering result data in the "search result area" and sequentially display one page from top to bottom for each restoration of one or more sets of rendering result data. And rendering result data which is not displayed in the page is stored in a buffer memory of the terminal.
According to the embodiment of the disclosure, the page frame structure information and the rendering result data respectively returned in response to the same search request are received and displayed, so that the terminal firstly displays the page frame structure information, the phenomenon of 'white screen' of the terminal page waiting for a long time is avoided, and the response speed of the terminal page is improved. Meanwhile, the method for recovering and displaying the rendering result data with long time consumption is adopted, so that long-time waiting of the terminal page is further avoided, the smoothness of displaying the terminal page is ensured, and the user experience is improved.
Corresponding to the first embodiment provided by the present disclosure, the present disclosure also provides a third embodiment, namely an apparatus for generating display information. Since the third embodiment is substantially similar to the first embodiment, the description is relatively simple, and the relevant portions will be referred to the corresponding descriptions of the first embodiment. The device embodiments described below are merely illustrative.
Fig. 5 shows an embodiment of an apparatus for generating display information provided by the present disclosure.
Referring to fig. 5, the present disclosure provides an apparatus for generating display information, including:
a page frame structure information unit 501 for generating page frame structure information in response to a search request and transmitting the page frame structure information to a terminal;
A rendering unit 502, configured to obtain multiple sets of search result data based on the search request, render each set of search result data, and generate rendering result data;
a dividing and marking unit 503, configured to sequentially divide each set of rendering result data into a plurality of rendering data blocks, and set a feature mark of the set in the plurality of rendering data blocks corresponding to each set of rendering result data;
and a transmitting unit 504 for transmitting the rendering data block to the terminal based on the division order.
Optionally, in the dividing and marking unit 503, it includes:
the set of characteristic marks subunit is configured to set the set of characteristic marks at a start position of a first rendering data block and an end position of a last rendering data block of each set of rendering result data respectively.
Optionally, in the dividing and marking unit 503, it includes:
a determining priority subunit, configured to determine a priority of the search result data segmentation and transmission according to the ranks of the multiple sets of search results;
and a render data block generation subunit configured to divide the search result data based on the priorities, and generate a plurality of render data blocks.
According to the embodiment of the disclosure, the same search request is responded, and the page frame structure information and rendering result data which consume different system resources are respectively transmitted to the terminal, so that the terminal can display the page frame structure information first, the phenomenon of 'white screen' of a terminal page waiting for a long time is avoided, and the response speed of the terminal page is improved. Meanwhile, the rendering result data are transmitted in a blocking sequence, so that the blocking phenomenon of the transmission data is avoided, the waiting time of data transmission is reduced, the smoothness of terminal page display is ensured, and the user experience is improved.
Corresponding to the second embodiment provided by the present disclosure, the present disclosure also provides a fourth embodiment, i.e., another apparatus for generating display information. Since the fourth embodiment is substantially similar to the second embodiment, the description is relatively simple, and the relevant portions will be referred to the corresponding descriptions of the second embodiment. The device embodiments described below are merely illustrative.
Fig. 6 illustrates an embodiment of another display information generation apparatus provided by the present disclosure.
Referring to fig. 6, the present disclosure provides an apparatus for generating display information, including:
A receiving rendering data block unit 601, configured to receive a plurality of rendering data blocks returned in response to a search request; wherein a portion of the rendered data block carries the set of signature tags;
a stitching unit 602, configured to stitch the rendering data blocks based on the set of feature labels, and generate at least one set of rendering result data;
a display search result unit 603, configured to respond to the generation of the at least one set of rendering result data, and display a search result on a search result page based on the at least one set of rendering result data; wherein the search results page is generated based on page frame structure information.
Optionally, the apparatus further includes:
And a display page frame structure information unit 600, configured to receive page frame structure information returned in response to a search request, and display the search result page based on the page frame structure information.
Optionally, in the splicing unit 602, it includes:
Searching a first rendering data block subunit, which is used for searching a first rendering data block and a last rendering data block corresponding to at least one group of rendering result data in the plurality of rendering data blocks based on the group of characteristic marks;
determining a same group of rendering data block subunits, which are used for determining a plurality of sequentially received rendering data blocks corresponding to the at least one group of rendering result data based on the first rendering data block and the last rendering data block;
And the sub-unit of the spliced rendering data block is used for splicing the rendering data blocks in sequence to generate at least one group of rendering result data.
According to the embodiment of the disclosure, the page frame structure information and the rendering result data respectively returned in response to the same search request are received and displayed, so that the terminal firstly displays the page frame structure information, the phenomenon of 'white screen' of the terminal page waiting for a long time is avoided, and the response speed of the terminal page is improved. Meanwhile, the method for recovering and displaying the rendering result data with long time consumption is adopted, so that long-time waiting of the terminal page is further avoided, the smoothness of displaying the terminal page is ensured, and the user experience is improved.
An embodiment of the present disclosure provides a fifth embodiment, that is, an electronic device, where the electronic device is configured to perform a method for generating display information, where the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the one processor to enable the at least one processor to perform the method of display information generation as described in the first embodiment or the second embodiment.
The present disclosure provides a sixth embodiment, namely, a computer storage medium storing computer-executable instructions that can perform the method of display information generation as described in the first embodiment or the second embodiment.
Referring now to fig. 7, a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 7, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage means 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
In general, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 7 shows an electronic device having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication device 709, or installed from storage 708, or installed from ROM 702. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 701.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.
Claims (10)
1. A method of generating display information, comprising:
Responding to the search request, generating page framework structure information and transmitting the page framework structure information to the terminal;
Acquiring total search result data based on the search request, dividing the total search result data into a plurality of groups according to the relativity with the search request to obtain a plurality of groups of search result data, rendering each group of search result data, and generating rendering result data;
Sequentially dividing each group of rendering result data into a plurality of rendering data blocks, and setting the group of characteristic marks in the plurality of rendering data blocks corresponding to each group of rendering result data;
And transmitting the rendering data block to a terminal based on the segmentation order.
2. The method according to claim 1, wherein setting the set of feature flags in the plurality of rendering data blocks corresponding to each set of rendering result data comprises:
And setting the characteristic marks of the group at the starting position of the first rendering data block and the ending position of the last rendering data block of each group of rendering result data respectively.
3. The method of claim 2, wherein sequentially dividing the rendering result data into a plurality of rendering data blocks comprises:
Determining the segmentation and transmission priority of each group of search result data according to the ordering of the plurality of groups of search result data;
and dividing each group of the search result data based on the priority, and generating a plurality of rendering data blocks.
4. A method of generating display information, comprising:
Receiving a plurality of rendering data blocks returned in response to the search request; wherein a portion of the rendered data block carries the set of signature tags; wherein the plurality of rendering data blocks are obtained by dividing at least one group of rendering result data; each group of rendering result data is obtained by rendering each group of search result data; each set of the search result data is obtained by grouping total search result data corresponding to the search request according to relevance to the search request;
Splicing the rendering data blocks based on the set of feature markers to generate at least one set of rendering result data;
Responsive to the generation of the at least one set of rendering result data, displaying search results on a search results page based on the at least one set of rendering result data; wherein the search results page is generated based on page frame structure information.
5. The method of claim 4, wherein prior to the receiving the plurality of rendered data blocks returned in response to the search request, the method further comprises:
And receiving page framework structure information returned in response to the search request, and displaying the search result page based on the page framework structure information.
6. The method according to claim 4 or 5, wherein the stitching the rendering data blocks based on the set of signature, obtaining at least one set of rendering result data, comprises:
Searching a first rendering data block and a last rendering data block corresponding to at least one group of rendering result data in the plurality of rendering data blocks based on the characteristic marks;
determining a plurality of sequentially received rendering data blocks corresponding to the at least one set of rendering result data based on the first rendering data block and the last rendering data block;
and sequentially splicing the rendering data blocks to generate at least one group of rendering result data.
7. An apparatus for generating display information, comprising:
The page frame structure information unit is used for responding to the search request, generating page frame structure information and transmitting the page frame structure information to the terminal;
the rendering unit is used for acquiring total search result data based on the search request, dividing the total search result data into a plurality of groups according to the relativity with the search request to obtain a plurality of groups of search result data, and rendering each group of search result data to generate rendering result data;
The segmentation and marking unit is used for sequentially segmenting each group of rendering result data into a plurality of rendering data blocks, and setting the group of characteristic marks in the plurality of rendering data blocks corresponding to each group of rendering result data;
And the transmission unit is used for transmitting the rendering data block to the terminal based on the segmentation sequence.
8. An apparatus for generating display information, comprising:
A rendering data block unit for receiving a plurality of rendering data blocks returned in response to the search request; wherein a portion of the rendered data block carries the set of signature tags; wherein the plurality of rendering data blocks are obtained by dividing at least one group of rendering result data; each group of rendering result data is obtained by rendering each group of search result data; each set of the search result data is obtained by grouping total search result data corresponding to the search request according to relevance to the search request;
the splicing unit is used for splicing the rendering data blocks based on the group of characteristic marks and generating at least one group of rendering result data;
A display user page unit for displaying search results on a search results page based on the at least one set of rendering result data in response to the generation of the at least one set of rendering result data; wherein the search results page is generated based on page frame structure information.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1 to 6.
10. An electronic device, comprising:
one or more processors;
Storage means for storing one or more programs which when executed by the one or more processors cause the one or more processors to implement the method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010631926.6A CN111984890B (en) | 2020-07-03 | 2020-07-03 | Method, device, medium and electronic equipment for generating display information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010631926.6A CN111984890B (en) | 2020-07-03 | 2020-07-03 | Method, device, medium and electronic equipment for generating display information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111984890A CN111984890A (en) | 2020-11-24 |
CN111984890B true CN111984890B (en) | 2024-06-25 |
Family
ID=73438384
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010631926.6A Active CN111984890B (en) | 2020-07-03 | 2020-07-03 | Method, device, medium and electronic equipment for generating display information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111984890B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102959517A (en) * | 2010-06-10 | 2013-03-06 | Otoy公司 | Allocation of gpu resources accross multiple clients |
CN103761317A (en) * | 2014-01-27 | 2014-04-30 | 北京京东尚科信息技术有限公司 | Multithreading asynchronous rendering system and method |
CN110619098A (en) * | 2018-12-26 | 2019-12-27 | 北京时光荏苒科技有限公司 | Information display method and device, electronic equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103187003B (en) * | 2011-12-31 | 2015-08-05 | 北京图盟科技有限公司 | A kind of access method of electronic chart, equipment and system |
US10546007B2 (en) * | 2017-03-27 | 2020-01-28 | International Business Machines Corporation | Presentation of search results details based on history of electronic texts related to user |
CN109241471B (en) * | 2018-10-26 | 2020-09-29 | 珠海格力电器股份有限公司 | Page rendering method, server, browser and energy information management system |
CN109740087A (en) * | 2018-11-23 | 2019-05-10 | 量子云未来(北京)信息科技有限公司 | A kind of picture rendering method, apparatus and system |
-
2020
- 2020-07-03 CN CN202010631926.6A patent/CN111984890B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102959517A (en) * | 2010-06-10 | 2013-03-06 | Otoy公司 | Allocation of gpu resources accross multiple clients |
CN103761317A (en) * | 2014-01-27 | 2014-04-30 | 北京京东尚科信息技术有限公司 | Multithreading asynchronous rendering system and method |
CN110619098A (en) * | 2018-12-26 | 2019-12-27 | 北京时光荏苒科技有限公司 | Information display method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111984890A (en) | 2020-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111414498B (en) | Multimedia information recommendation method and device and electronic equipment | |
CN111368185B (en) | Data display method and device, storage medium and electronic equipment | |
CN111444356B (en) | Recommendation method and device based on search | |
CN111400625B (en) | Page processing method and device, electronic equipment and computer readable storage medium | |
CN110633126B (en) | Information display method and device and electronic equipment | |
CN111258736B (en) | Information processing method and device and electronic equipment | |
US20210182491A1 (en) | Summary generation method and apparatus | |
EP4231143A1 (en) | Information display method and apparatus, electronic device, and computer readable storage medium | |
CN112053286B (en) | Image processing method, device, electronic equipment and readable medium | |
CN111259636B (en) | Document rendering method and device and electronic equipment | |
US20230033164A1 (en) | Webpage image monitoring method and apparatus, electronic device, and computer-readable storage medium | |
CN110781437A (en) | Method and device for acquiring webpage image loading duration and electronic equipment | |
CN111596992B (en) | Navigation bar display method and device and electronic equipment | |
US20220365644A1 (en) | User interface presentation method and apparatus, computer-readable medium and electronic device | |
CN113407665A (en) | Text comparison method, device, medium and electronic equipment | |
CN111259291B (en) | View display method and device and electronic equipment | |
CN113961280A (en) | View display method and device, electronic equipment and computer-readable storage medium | |
CN112084441A (en) | Information retrieval method and device and electronic equipment | |
CN111984890B (en) | Method, device, medium and electronic equipment for generating display information | |
CN111581556B (en) | Page data processing method, device, electronic equipment and readable medium | |
CN113176937B (en) | Task processing method and device and electronic equipment | |
CN112732457B (en) | Image transmission method, image transmission device, electronic equipment and computer readable medium | |
CN111338827B (en) | Method and device for pasting form data and electronic equipment | |
CN112948108B (en) | Request processing method and device and electronic equipment | |
CN110865810A (en) | Resource multiplexing method and device, electronic equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |