CN111984890A - Display information generation method, device, medium and electronic equipment - Google Patents

Display information generation method, device, medium and electronic equipment Download PDF

Info

Publication number
CN111984890A
CN111984890A CN202010631926.6A CN202010631926A CN111984890A CN 111984890 A CN111984890 A CN 111984890A CN 202010631926 A CN202010631926 A CN 202010631926A CN 111984890 A CN111984890 A CN 111984890A
Authority
CN
China
Prior art keywords
rendering
result data
data
page
group
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.)
Pending
Application number
CN202010631926.6A
Other languages
Chinese (zh)
Inventor
王硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010631926.6A priority Critical patent/CN111984890A/en
Publication of CN111984890A publication Critical patent/CN111984890A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The disclosure provides a display information generation method, device, medium and electronic equipment. 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 firstly display the page frame structure information, thereby avoiding the 'white screen' phenomenon that a terminal page waits for a long time, and improving the response speed of the terminal page. Meanwhile, the rendering result data is sequentially transmitted in a blocking mode, so that the phenomenon of blocking of the transmitted data is avoided, the waiting time of data transmission is reduced, the smoothness of terminal page display is guaranteed, and the user experience is improved.

Description

Display information generation method, device, medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a medium, and an electronic device for generating display information.
Background
Internet search, comprising: information collection, information sorting and user query. To help people search for desired information in a vast network.
Generally, a terminal sends a search request to a server, and the server packages and sends page frame structure information and rendering result data responding to the search request to the terminal. However, due to the difference of occupied system resources, there is a time difference between the server side acquiring the page frame structure information and the rendering result data, and when the rendering result data volume is large, the terminal page often has a 'white screen' phenomenon of long-time waiting.
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.
An object of the present disclosure is to provide a method, an apparatus, a medium, and an electronic device for generating display information, which can solve at least one of the above-mentioned technical problems. 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 frame structure information and sending the page frame 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 a group of feature 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, 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 part of the rendering data blocks carry the set of feature labels;
splicing the rendering data blocks based on the characteristic marks to generate at least one set of rendering result data;
in response to the generation of the at least one set of rendering result data, presenting search results on a search results page based on the at least one set of rendering result data; wherein the search result page is generated based on page frame structure information.
According to a third aspect, the present disclosure provides an apparatus for generating display information, including:
a page frame structure information unit 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 characteristic mark of the group in the plurality of rendering data blocks corresponding to each group of rendering result data;
a transmitting unit, configured to transmit the rendering data block to a terminal based on a segmentation order.
According to a fourth aspect, the present disclosure provides an apparatus for generating display information, including:
a receive rendering data block unit for receiving a plurality of rendering data blocks returned in response to the search request; wherein part of the rendering data blocks carry the set of feature labels;
the splicing unit is used for splicing the rendering data blocks based on the characteristic marks to generate at least one set of rendering result data;
a search result displaying unit, configured to, in response to the generation of the at least one set of rendering result data, display a search result on a search result page based on the at least one set of rendering result data; wherein the search result page is generated based on page frame structure information.
According to a fifth aspect, the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of display information generation according to any one of the first or second aspects.
According to a sixth aspect thereof, the present disclosure provides an electronic device, comprising: one or more processors; a storage device 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 one of the first or second aspects.
Compared with the prior art, the scheme of the embodiment of the disclosure at least has the following beneficial effects:
the disclosure provides a display information generation method, device, medium and electronic equipment. 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 firstly display the page frame structure information, thereby avoiding the 'white screen' phenomenon that a terminal page waits for a long time, and improving the response speed of the terminal page. Meanwhile, the rendering result data is sequentially transmitted in a blocking mode, so that the phenomenon of blocking of the transmitted data is avoided, the waiting time of data transmission is reduced, the smoothness of terminal page display is guaranteed, and the user experience is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
FIG. 1 shows a flow diagram of a method of display information generation according to an embodiment of the present disclosure;
FIG. 2 illustrates a search results page showing a method of 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 diagram of another method of display information generation in accordance with an embodiment of the present disclosure;
FIG. 5 illustrates a block diagram of elements of an apparatus for display information generation according to an embodiment of the present disclosure;
FIG. 6 illustrates a block diagram of elements of another apparatus for display information generation in accordance with an embodiment of the present disclosure;
fig. 7 shows an electronic device connection structure schematic 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 are shown in the 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 rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the 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. Moreover, 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 "include" and variations thereof as used herein are 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". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Alternative embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
A first embodiment provided by the present disclosure is an embodiment of a method for generating display information.
The embodiments of the present disclosure will be described in detail with reference to fig. 1 to 3.
As shown in fig. 1, in response to the search request, page frame structure information is generated and transmitted to the terminal in step S101.
The page frame structure information divides the web browser window into a plurality of functional areas, and the functional areas independently display rendering result data of different functions. For example, as shown in fig. 2, when a user interface inputs a "front-end client" in a "search bar" of an independent page, a search is performed, a new independent page is generated on the user interface, and page frame structure information and rendering result data are obtained from a server; wherein, the functional area in the page frame structure information includes: "search bar area", "classification bar area", "search result area", and "paging area"; a plurality of groups of rendering result data which are sequentially displayed in the search result area from top to bottom, wherein each group of rendering result data comprises: searching subject and index, picture display, simple introduction and release time; if the acquired rendering result data of one page exceeds the display area of the first screen (namely the rendering result data which is firstly displayed in a user interface after the page is refreshed), the rest rendering result data of the page need to be checked in a mode of rolling the display area of a window; 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 specified page request can be sent through a paging area page turning function, and the rendering result data of the corresponding page can be checked under the same page frame structure information.
Generally, a terminal sends a search request to a server, and the server packages and sends page frame structure information and rendering result data responding 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 the rendering result data. The acquisition of the page frame 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 frame structure information is acquired, which depends on more system resources and has a slow speed, generally requiring about 1000 milliseconds. In particular, the more rendering result data, the longer the delay time. Therefore, as shown in fig. 3, since the system resources dependent on obtaining the page frame structure information are less, the rendering server side first transmits the obtained 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 the terminal page waiting for a long time.
For example, as shown in fig. 2 and fig. 3, a block transmission coding technique (i.e., a Chunked transmission technique) and a Server Side Rendering technique (hereinafter, referred to as Server Side Rendering, abbreviated as SSR) are used to complete a Rendering task responding to a search request. When a user interface inputs a front-end client in a search bar of an independent page and then searches, a user terminal sends a search request for searching the front-end client to a rendering server; after the rendering server side obtains the search request information, firstly, 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 the 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 search result data at a rendering server side by adopting an SSR (simple sequence repeat) to generate rendering result data; meanwhile, in order to meet the requirement of page paging display of a user, all rendering result data are divided into a plurality of groups according to the requirement of page display; in order to avoid the phenomenon of 'white screen' of the terminal page waiting for a long time and improve the response speed of the terminal page, the chunked transmission technology is adopted to divide rendering result data of each page into a plurality of rendering data blocks, and the rendering data blocks are sequentially transmitted to the terminal.
The Chunked transmission technology, introduced in HTTP1.1, is a data transmission mechanism that allows data sent from the HTTP server to the terminal to be divided into multiple blocks and marked to end with a block of length 0. The designation "Transfer-Encoding: chunked" can be seen at the head of the block Transfer request. By means of this technique, a progressive data transmission can be achieved.
The SSR is a front-end rendering technology, and the rendering work is finished by the server side in a unified way, so that the difference of rendering speeds of different mobile devices is avoided.
And S102, 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. 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 sorted according to the relevance with the search request, the sorted 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 the groups of search result data are also ordered. And during rendering, rendering each group of search result data in sequence to generate rendering result data. In order to avoid the phenomenon of 'white screen' of the terminal page waiting for a long time and improve the response speed of the terminal page, each group of rendering result data is sequentially divided into a plurality of rendering data blocks and sequentially transmitted to the terminal in blocks. The rendering result data is sequentially transmitted in a blocking mode, so that the phenomenon of blocking of the transmitted data is avoided, the waiting time of data transmission is reduced, the smoothness of terminal page display is guaranteed, and the user experience is improved.
Since the system resources on which the rendering result data is acquired are more, and the process of acquiring the rendering result data is slower, the rendering result data is separately transmitted to the terminal in the embodiment of the present 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, except that each group of rendering result data needs to be sequentially divided into rendering data blocks, 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.
And step S103, sequentially dividing each group of rendering result data into a plurality of rendering data blocks, and setting the characteristic mark of the group in the plurality of rendering data blocks corresponding to each group of rendering result data.
In order to prevent the phenomenon that the data received by the terminal is blocked due to too long transmitted 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 the occurrence of blocking, thereby reducing the waiting time of data transmission and ensuring the smoothness of the page display of the terminal.
Specifically, the sequentially dividing the rendering result data into a plurality of rendering data blocks includes the following steps:
and S103-11, determining the division and transmission priority of each group of search result data according to the sequence of the plurality of groups of search result data.
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, the priority of division and transmission of all the search result data needs to be determined, namely the sequence of obtaining each group of search result data according to the search condition of the search information.
And step S103-12, dividing the search result data based on the priority to generate a plurality of rendering data blocks.
When the search result data is segmented according to the priority, rendering result data also needs to be segmented in sequence, and the set of feature marks are added to the rendering data blocks on the basis, so that the terminal can be ensured to restore the received rendering data blocks into original rendering result data. Therefore, in order to enable the terminal to splice the rendering data blocks into corresponding groups of rendering result data after receiving the rendering data blocks, the embodiment of the present disclosure sets the group of feature markers in the rendering data blocks for marking the groups corresponding to the rendering data blocks.
Specifically, the setting of the group of feature labels in the plurality of rendering data blocks corresponding to each group of rendering result data includes the following steps:
and S103-21, respectively 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.
For each group of search result data, if the search result data are divided according to the priority and the rendering data blocks are transmitted according to the priority, the group of feature marks are respectively set at the starting position of the first rendering data block and the ending position of the last rendering data block which are sequentially divided. The terminal can splice the corresponding rendering result data according to the rule.
For example, there is a set of search result DATA "< div > < span > A </span > </div >" with the present set of features labeled "< FRAGMENT-DATA-A >"; segmenting the set of search result data, generating three rendering data blocks:
<div
><span>A</spa
n></div>;
setting the characteristic mark of the group at the starting position of the first rendering data block "< div", and setting the characteristic mark 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>。
and step S104, transmitting the rendering data blocks to a terminal based on the segmentation order.
The page frame structure information and the rendering result data which consume different system resources are respectively transmitted to the terminal in response to the same search request, so that the terminal can firstly display the page frame structure information, 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 is sequentially transmitted in a blocking mode, so that the phenomenon of blocking of the transmitted data is avoided, the waiting time of data transmission is reduced, the smoothness of terminal page display is guaranteed, 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, that is, another method of generating display information. Since the second embodiment is related to the first embodiment, the description is relatively simple, and the relevant portions only need to refer to the corresponding description of the first embodiment.
The embodiments of the present disclosure will be described in detail with reference to fig. 2 to 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.
The page frame structure information received firstly is displayed on the terminal so as to avoid the phenomenon of 'white screen' of the terminal page waiting for a long time.
In step S401, a plurality of rendering data blocks returned in response to the search request are received.
As shown in fig. 3, the rendering server transmits the rendering data blocks to the terminal according to the block sequential transmission mode, and the terminal receives the rendering data blocks according to the priority block sequential of the first embodiment.
Wherein, part of the rendering data blocks carry the characteristic mark of the group.
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 group of feature flags at the start position of the first rendering data block and the end position of the last rendering data block which are divided sequentially.
Step S402, splicing the rendering data blocks based on the characteristic marks to generate at least one set of rendering result data.
Optionally, the method comprises the following steps:
step S402-1, based on the set of feature labels, searching 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 </span > </div >" with the present set of features 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-A > < div", and the last rendering DATA block is "n > </div > < FRAGMENT-DATA-A >".
Step S402-2, based on the first rendering data block and the last rendering data block, determining a plurality of rendering data blocks received in sequence corresponding to the at least one group of rendering result data.
Since the three rendering data blocks are received sequentially, after the first rendering data block and the last rendering data block are determined, the rendering data block received in the middle is the same as the first rendering data block and the last rendering data block.
For example, continuing with the example above, the rendered data chunk "> < span > A </span" is in the same group as the leading and trailing rendered data chunks described above.
And S402-3, sequentially splicing the rendering data blocks to generate at least one group of rendering result data.
And sequentially splicing the rendering data blocks of the group based on the receiving sequence to obtain rendering result data of the corresponding group. For example, continuing with the above example, the rendering result data of the corresponding group is "< div > < span > A </span > </div >".
Step S403, in response to the generation of the at least one set of rendering result data, displaying a search result on a search result page based on the at least one set of rendering result data.
Wherein the search result page is generated based on page frame structure information.
For example, as shown in fig. 2, the functional areas provided by the page frame structure information in the search result page include: "search bar area", "classification bar area", "search result area", and "paging area"; for rendering result data in the "search result area", each time one or more sets of rendering result data are restored, the embodiments of the present disclosure display a page of restored rendering result data in the "search result area" and sequentially display the page of restored rendering result data from top to bottom. And the rendering result data which is not shown in the page is stored in the cache of the terminal.
The page frame structure information and the rendering result data which are 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 'white screen' phenomenon that the terminal page waits for a long time is avoided, and the response speed of the terminal page is improved. Meanwhile, a method for recovering and displaying rendering result data with long time consumption is adopted, so that long-time waiting of a terminal page is further avoided, the smoothness of terminal page display 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, that is, an apparatus for generating display information. Since the third embodiment is basically similar to the first embodiment, the description is simple, and the relevant portions should be referred to the corresponding description of the first embodiment. The device embodiments described below are merely illustrative.
Fig. 5 illustrates an embodiment of an apparatus for generating display information provided by the present disclosure.
Referring to fig. 5, the present disclosure provides a display information generating apparatus, including:
a page frame structure information unit 501, configured to generate page frame structure information in response to the search request and transmit the page frame structure information to the terminal;
a rendering unit 502, configured to obtain multiple sets of search result data based on the search request, and render each set of search result data to 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 set of feature marks in the plurality of rendering data blocks corresponding to each set of rendering result data;
a transmitting unit 504, configured to transmit the rendering data block to a terminal based on the segmentation order.
Optionally, the segmenting and labeling unit 503 includes:
and the characteristic mark subunit is used for respectively 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.
Optionally, the segmenting and labeling unit 503 includes:
a priority determining subunit, configured to determine a priority for dividing and transmitting the search result data according to the ranking of the plurality of sets of search results;
and the render data block generating subunit is used for dividing the search result data based on the priority and generating a plurality of render data blocks.
The page frame structure information and the rendering result data which consume different system resources are respectively transmitted to the terminal in response to the same search request, so that the terminal can firstly display the page frame structure information, 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 is sequentially transmitted in a blocking mode, so that the phenomenon of blocking of the transmitted data is avoided, the waiting time of data transmission is reduced, the smoothness of terminal page display is guaranteed, and the user experience is improved.
Corresponding to the second embodiment provided by the present disclosure, the present disclosure also provides a fourth embodiment, that is, another display information generation apparatus. Since the fourth embodiment is substantially similar to the second embodiment, the description is simple, and the related portions should be referred to the corresponding description of the second embodiment. The device embodiments described below are merely illustrative.
Fig. 6 shows 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 receive rendering data block unit 601, configured to receive a plurality of rendering data blocks returned in response to the search request; wherein part of the rendering data blocks carry the set of feature labels;
a splicing unit 602, configured to splice the rendering data blocks based on the set of feature labels, and generate at least one set of rendering result data;
a search result presenting unit 603, configured to, in response to the generation of the at least one set of rendering result data, present a search result on a search result page based on the at least one set of rendering result data; wherein the search result page is generated based on page frame structure information.
Optionally, the apparatus further comprises:
and a page frame structure information displaying unit 600, configured to receive page frame structure information returned in response to the search request, and display the search result page based on the page frame structure information.
Optionally, the splicing unit 602 includes:
a first rendering data block searching subunit, configured to search, based on the set of feature flags, 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;
a determining same group of rendering data block subunits 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 splicing rendering data block subunit is used for sequentially splicing the rendering data blocks and generating the at least one group of rendering result data.
The page frame structure information and the rendering result data which are 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 'white screen' phenomenon that the terminal page waits for a long time is avoided, and the response speed of the terminal page is improved. Meanwhile, a method for recovering and displaying rendering result data with long time consumption is adopted, so that long-time waiting of a terminal page is further avoided, the smoothness of terminal page display is ensured, and the user experience is improved.
The present disclosure provides a fifth embodiment, that is, an electronic device, 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 content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to perform the method of display information generation as described in the first or second embodiments.
The disclosed embodiments provide a sixth embodiment, which is a computer storage medium for display information generation, the computer storage medium storing computer-executable instructions, the computer-executable instructions being capable of executing the method for display information generation as described in the first embodiment or the second embodiment.
Referring now to FIG. 7, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, the electronic device may include a processing device (e.g., central processing unit, 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 device 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 by a bus 704. An input/output (I/O) interface 705705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; 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 device 709 may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 present 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 contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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, optical cables, RF (radio frequency), etc., 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 interconnect with any form or medium of digital data communication (e.g., a communications 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 network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
Computer program code for carrying out operations for the present disclosure may be written in any combination of 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart 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 described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above 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: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), 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. A 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 block 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 exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while 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. Under 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 limitations on the scope of the 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 disclosed as example forms of implementing the claims.

Claims (10)

1. A method of display information generation, comprising:
responding to the search request, generating page frame structure information and transmitting the page frame 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 a group of feature 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 the setting of the set of feature flags in the plurality of rendering data blocks corresponding to each set of rendering result data comprises:
and respectively 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.
3. The method of claim 2, wherein the sequentially partitioning the rendering result data into a plurality of rendering data blocks comprises:
determining the division and transmission priority of each group of search result data according to the sequence of the plurality of groups of search result data;
and dividing each group of the search result data based on the priority to generate a plurality of rendering data blocks.
4. A method of display information generation, comprising:
receiving a plurality of rendering data blocks returned in response to the search request; wherein part of the rendering data blocks carry the set of feature labels;
splicing the rendering data blocks based on the characteristic marks to generate at least one set of rendering result data;
in response to the generation of the at least one set of rendering result data, presenting search results on a search results page based on the at least one set of rendering result data; wherein the search result page is generated based on page frame structure information.
5. The method of claim 4, wherein prior to said receiving the plurality of rendered data chunks returned in response to the search request, the method further comprises:
and receiving page frame structure information returned in response to the search request, and displaying the search result page based on the page frame structure information.
6. The method according to claim 4 or 5, wherein the splicing the rendering data block based on the present set of feature labels to obtain at least one set of rendering result data comprises:
based on the characteristic mark, 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;
determining a plurality of sequentially received rendering data blocks corresponding to the at least one set of rendering result data based on the leading rendering data block and the last rendering data block;
and sequentially splicing the rendering data blocks to generate the at least one group of rendering result data.
7. An apparatus for display information generation, comprising:
a page frame structure information unit 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 characteristic mark of the group in the plurality of rendering data blocks corresponding to each group of rendering result data;
a transmitting unit, configured to transmit the rendering data block to a terminal based on a segmentation order.
8. An apparatus for display information generation, comprising:
a receive rendering data block unit for receiving a plurality of rendering data blocks returned in response to the search request; wherein part of the rendering data blocks carry the set of feature labels;
the splicing unit is used for splicing the rendering data blocks based on the characteristic marks to generate at least one set of rendering result data;
a display user page unit for, in response to the generation of the at least one set of rendering result data, presenting a search result on a search result page based on the at least one set of rendering result data; wherein the search result page is generated based on page frame structure information.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out 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 carry out the method of any one of claims 1 to 6.
CN202010631926.6A 2020-07-03 2020-07-03 Display information generation method, device, medium and electronic equipment Pending CN111984890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010631926.6A CN111984890A (en) 2020-07-03 2020-07-03 Display information generation method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010631926.6A CN111984890A (en) 2020-07-03 2020-07-03 Display information generation method, device, medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN111984890A true CN111984890A (en) 2020-11-24

Family

ID=73438384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010631926.6A Pending CN111984890A (en) 2020-07-03 2020-07-03 Display information generation method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111984890A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102959517A (en) * 2010-06-10 2013-03-06 Otoy公司 Allocation of gpu resources accross multiple clients
CN103187003A (en) * 2011-12-31 2013-07-03 北京图盟科技有限公司 Access method, device and system of electronic map
CN103761317A (en) * 2014-01-27 2014-04-30 北京京东尚科信息技术有限公司 Multithreading asynchronous rendering system and method
US20180276295A1 (en) * 2017-03-27 2018-09-27 International Business Machines Corporation Presentation of Search Results Details Based on History of Electronic Texts Related to User
CN109241471A (en) * 2018-10-26 2019-01-18 珠海格力电器股份有限公司 Page rendering method, server, browser and exploitation for energy information management system
CN109740087A (en) * 2018-11-23 2019-05-10 量子云未来(北京)信息科技有限公司 A kind of picture rendering method, apparatus and system
CN110619098A (en) * 2018-12-26 2019-12-27 北京时光荏苒科技有限公司 Information display method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102959517A (en) * 2010-06-10 2013-03-06 Otoy公司 Allocation of gpu resources accross multiple clients
CN103187003A (en) * 2011-12-31 2013-07-03 北京图盟科技有限公司 Access method, device and system of electronic map
CN103761317A (en) * 2014-01-27 2014-04-30 北京京东尚科信息技术有限公司 Multithreading asynchronous rendering system and method
US20180276295A1 (en) * 2017-03-27 2018-09-27 International Business Machines Corporation Presentation of Search Results Details Based on History of Electronic Texts Related to User
CN109241471A (en) * 2018-10-26 2019-01-18 珠海格力电器股份有限公司 Page rendering method, server, browser and exploitation for energy information management system
CN109740087A (en) * 2018-11-23 2019-05-10 量子云未来(北京)信息科技有限公司 A kind of picture rendering method, apparatus and system
CN110619098A (en) * 2018-12-26 2019-12-27 北京时光荏苒科技有限公司 Information display method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111414498B (en) Multimedia information recommendation method and device and electronic equipment
CN111399956A (en) Content display method and device applied to display equipment and electronic equipment
CN111400625B (en) Page processing method and device, electronic equipment and computer readable storage medium
CN110633126B (en) Information display method and device and electronic equipment
CN112287206A (en) Information processing method and device and electronic equipment
CN111258736A (en) Information processing 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
CN110852946A (en) Picture display method and device and electronic equipment
CN111723309B (en) Method and device for web page searching
CN111259636A (en) Document rendering method and device and electronic equipment
CN112053286B (en) Image processing method, device, electronic equipment and readable medium
CN113407665A (en) Text comparison method, device, medium and electronic equipment
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN112084441A (en) Information retrieval method and device and electronic equipment
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN111273884A (en) Image display method and device and electronic equipment
CN111581556B (en) Page data processing method, device, electronic equipment and readable medium
CN111984890A (en) Display information generation method, device, medium and electronic equipment
CN112732457B (en) Image transmission method, image transmission device, electronic equipment and computer readable medium
CN110568976B (en) Method, device, equipment and storage medium for controlling application display
CN111399730A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN110865810A (en) Resource multiplexing method and device, electronic equipment and computer readable storage medium
CN110795670A (en) Webpage image monitoring method and device, electronic equipment and readable storage medium
CN111338827A (en) Method and device for pasting table data and electronic equipment

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