Data processing method and device, computing equipment, storage medium and program product

By determining the type and layout type of data to be displayed, generating layout information and predetermining the display position, the problem of low list display efficiency in the existing technology is solved, efficient layout calculation and rendering is achieved, and system overhead and rendering delay are reduced.

CN118550631APending Publication Date: 2024-08-27ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410709027.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

During the list display process in the existing technology, due to differences in content types and layout styles of different information, layout calculation and rendering display need to be performed for each piece of information, resulting in long calculation time, high system overhead, and low rendering efficiency.

Method used

By obtaining the type of data to be displayed, the layout type of the target data display position is determined, and layout information is generated according to the layout type, the display position is determined in advance, the layout calculation and rendering process is optimized, and the efficiency of layout information generation and rendering is improved.

Benefits of technology

By improving the reuse rate of layout information calculation and pre-layout processing, system overhead is reduced, list rendering efficiency is improved, and calculation delays and memory surge issues are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550631A
    Figure CN118550631A
Patent Text Reader

Abstract

The embodiment of the invention provides a data processing method and device, computing equipment, a storage medium and a program product, and the method comprises the steps: obtaining to-be-displayed data, and determining a data type corresponding to the to-be-displayed data; according to the data type, determining a layout type of a target data display bit corresponding to the to-be-displayed data; generating layout information of the target data display bit according to a layout rule corresponding to the layout type; the display position of the target data display position in the target data display object is determined according to the layout information, the to-be-displayed data is rendered based on the display position, the target data display object is generated, and layout calculation can be performed on the to-be-displayed data according to the layout rule corresponding to the layout type by determining the layout type; layout information is generated based on a layout type, the reuse rate of a layout information calculation mode is improved, and the system overhead is reduced; the display position is determined according to the layout information, pre-layout of the target data display position is achieved, and the rendering efficiency of the target data display object is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of computer technology, and in particular, to a data processing method, apparatus, computing device, storage medium, and program product. Background Art

[0002] With the development and progress of computer technology, cross-platform application technology has developed rapidly, allowing information to be displayed on the client in the form of a list.

[0003] At present, in the process of list display, due to the differences in content type and layout style of different information, in order to meet the diversity and aesthetics of page display, it is necessary to perform layout calculation and rendering display for each piece of information. However, this method will bring about a large calculation time, large system overhead, and low rendering efficiency. Summary of the invention

[0004] In view of this, an embodiment of this specification provides a data processing method. One or more embodiments of this specification also relate to a data processing device, a computing device, a computer-readable storage medium and a computer program product to solve the technical defects existing in the prior art.

[0005] According to a first aspect of an embodiment of this specification, a data processing method is provided, including:

[0006] Obtain the data to be displayed and determine the data type corresponding to the data to be displayed;

[0007] Determine the layout type of the target data display position corresponding to the data to be displayed according to the data type;

[0008] Generate layout information of the target data display position according to the layout rules corresponding to the layout type;

[0009] According to the layout information, the display position of the target data display position in the target data display object is determined, and the data to be displayed is rendered based on the display position to generate the target data display object.

[0010] According to a second aspect of an embodiment of this specification, there is provided a data processing device, including:

[0011] An acquisition module is configured to acquire the data to be displayed and determine the data type corresponding to the data to be displayed;

[0012] A determination module is configured to determine a layout type of a target data display position corresponding to the data to be displayed according to the data type;

[0013] A generation module is configured to generate layout information of a target data display position according to a layout rule corresponding to the layout type;

[0014] The rendering module is configured to determine the display position of the target data display position in the target data display object according to the layout information, and render the data to be displayed based on the display position to generate the target data display object.

[0015] According to a third aspect of an embodiment of this specification, a computing device is provided, including:

[0016] Memory and processor;

[0017] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above data processing method are implemented.

[0018] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned data processing method are implemented.

[0019] According to a fifth aspect of the embodiments of this specification, a computer program product is provided, comprising a computer program / instruction, which implements the steps of the above-mentioned data processing method when executed by a processor.

[0020] An embodiment of the present specification realizes obtaining data to be displayed and determining the data type corresponding to the data to be displayed; determining the layout type of the target data display position corresponding to the data to be displayed according to the data type; generating layout information of the target data display position according to the layout rule corresponding to the layout type; determining the display position of the target data display position in the target data display object according to the layout information, and rendering the data to be displayed based on the display position to generate the target data display object. By determining the layout type of the target data display position corresponding to the data to be displayed, the layout calculation of the data to be displayed can be performed according to the layout rule corresponding to the layout type to obtain the layout information of the target data display position, and the layout information is generated based on the layout type, so as to improve the reuse rate of the layout information calculation method, reduce the system overhead, and thus improve the layout information generation efficiency; by generating the layout information before rendering the data to be displayed and determining the display position according to the layout information, the pre-layout of the target data display position in the target data display object can be realized, thereby improving the rendering efficiency of the target data display object. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a flow chart of a data processing method provided by an embodiment of this specification;

[0022] Figure 2 is a processing flow chart of a data processing method provided by an embodiment of this specification;

[0023] Figure 3 It is a schematic diagram of the architecture design of a data processing method provided by an embodiment of this specification;

[0024] Figure 4 is a structural schematic diagram of a data processing device provided by an embodiment of this specification;

[0025] Figure 5 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0026] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0027] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0028] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0029] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0030] In one or more embodiments of this specification, a large model refers to a deep learning model with large-scale model parameters, which usually contains hundreds of millions, tens of billions, hundreds of billions, trillions, or even more than 10 trillion model parameters. A large model can also be called a foundation model / foundation model. The large model is pre-trained with large-scale unlabeled corpus to produce a pre-trained model with more than 100 million parameters. This model can adapt to a wide range of downstream tasks, and the model has good generalization ability, such as a large-scale language model (LLM), a multi-modal pre-training model, etc.

[0031] When the big model is used in practice, only a small number of samples are needed to fine-tune the pre-trained model and it can be applied to different tasks. The big model can be widely used in natural language processing (NLP), computer vision and other fields. Specifically, it can be applied to computer vision tasks such as visual question answering (VQA), image description (IC), image generation, as well as natural language processing tasks such as text-based sentiment classification, text summary generation, and machine translation. The main application scenarios of the big model include digital assistants, intelligent robots, search, online education, office software, e-commerce, intelligent design, etc.

[0032] First, the terms involved in one or more embodiments of this specification are explained.

[0033] Network source data: It is the data resource that the list obtains based on the data source and can be displayed in the list component. Network source data can come from a variety of different data sources and can have a variety of different data types.

[0034] List: A collection of similar or related items in a web application. In practical applications, such as community forums, forums, and microblogs, network information is displayed in the form of lists.

[0035] List component: refers to a user interface component used to display a variety of scrollable list data, and in this specification can also be understood as a card used to display data resources.

[0036] Container: In this specification, it refers to the basic components used to build organized, maintainable and user-friendly interface designs. Based on containers, developers can efficiently control and adjust the interface layout to meet design requirements and user expectations.

[0037] VDOM (Virtual Document Object Model) node: a node in the tree structure corresponding to the virtual document object model. The tree structure of the virtual document object model corresponds to the actual document object model in structure. By creating a VDOM, you can quickly find the changed parts in the tree structure through Diff (differential calculation), thereby improving the update efficiency of the actual DOM.

[0038] DOM (Document Object Model): is a standard object model for representing documents such as HTML or XML. It enables programs and scripts to access and manipulate the content, structure and style of a web page. DOM treats each part of a web page (such as a tag, attribute, text, etc.) as a node and organizes these nodes into a tree structure. DOM allows developers to find, access, modify or delete these nodes through code, thereby dynamically changing the appearance, content or behavior of a web page.

[0039] With the development and progress of computer technology, cross-platform application technology has developed rapidly, enabling information to be displayed in the form of a list in the client's UI interface.

[0040] At present, in the process of list display, due to the differences in content type and layout style of different information, in order to meet the diversity and aesthetics of page display, it is necessary to perform layout calculation and rendering display for each piece of information. However, this method will bring about a large calculation time, large system overhead, and low rendering efficiency.

[0041] Based on this, an embodiment of the present specification provides a data processing method, which obtains data to be displayed and determines the data type corresponding to the data to be displayed; determines the layout type of a target data display position corresponding to the data to be displayed according to the data type; generates layout information of the target data display position according to the layout rule corresponding to the layout type; determines the display position of the target data display position in the target data display object according to the layout information, and renders the data to be displayed based on the display position to generate the target data display object.

[0042] In this way, by determining the layout type of the target data display position corresponding to the data to be displayed, the layout calculation of the data to be displayed can be performed according to the layout rules corresponding to the layout type, and the layout information of the target data display position can be obtained, so as to realize the generation of layout information based on the layout type, improve the reuse rate of the layout information calculation method, reduce the system overhead, and thus improve the layout information generation efficiency; by generating layout information and determining the display position according to the layout information before rendering the data to be displayed, the pre-layout of the target data display position in the target data display object can be realized, thereby improving the rendering efficiency of the target data display object.

[0043] In this specification, a data processing method is provided. This specification also relates to a data processing apparatus, a computing device, a computer-readable storage medium, and a computer program product, which are described in detail one by one in the following embodiments.

[0044] See also Figure 1 , Figure 1 A flow chart of a data processing method provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0045] Step 102: Acquire the data to be displayed, and determine the data type corresponding to the data to be displayed.

[0046] In actual applications, the data to be displayed can be obtained, and the data type corresponding to the data to be displayed can be determined.

[0047] Specifically, the data to be displayed can be understood as list data for display in a list, or as network source data. The data to be displayed can include one or more different data types, such as text, pictures, equipment data, etc. Among them, the equipment data can be understood as the suit data of the virtual character in the game, which can include data information such as the equipment name, equipment value, and suit score value of each equipment in the suit.

[0048] In actual applications, the data to be displayed can be obtained across platforms, and the data sources of different data to be displayed can be the same or different, that is, the data sources of the list can include multiple ones.

[0049] Optionally, the data to be displayed can be pulled across platforms through an API interface, or obtained from data centers, cloud servers, third-party databases and other channels.

[0050] According to an optional embodiment of the present specification, determining the data type corresponding to the data to be displayed may include the following steps:

[0051] Identify the characteristic information of the data to be displayed, and determine the data type corresponding to the data to be displayed according to the characteristic information.

[0052] Specifically, the feature information may include data identification information, such as prefixes, suffixes, tags, etc.; it may also include keyword information, such as key content, key fields, etc.

[0053] In practical applications, the data to be displayed obtained by pulling the list may carry data identification information. Based on the data identification information, the data features of the data to be displayed may be determined, thereby classifying the data to be displayed according to the data features and determining the data type.

[0054] By applying this embodiment, by identifying the characteristic information of the data to be displayed and determining the data type corresponding to the data to be displayed according to the characteristic information, it is possible to determine the layout type of the target data display position according to the data type, and to determine the layout rules corresponding to the data to be displayed, which is beneficial to improving the layout calculation efficiency of the data to be displayed.

[0055] According to another optional embodiment of the present specification, determining the data type corresponding to the to-be-displayed data may also include the following steps: parsing the data content of the to-be-displayed data, and determining the data type corresponding to the to-be-displayed data according to the data content.

[0056] According to another optional embodiment of the present specification, determining the data type corresponding to the data to be displayed may also include: inputting the data to be displayed into a data classification model to obtain the data type output by the data classification model. Specifically, the data classification model is a model obtained by pre-training and can identify and determine the data type of the data to be displayed.

[0057] Step 104: Determine the layout type of the target data display position corresponding to the data to be displayed according to the data type.

[0058] In practical applications, on the basis of determining the data type, the layout type of the target data display position corresponding to the data to be displayed can be determined according to the data type.

[0059] Specifically, the target data display position can be understood as the display position of the data to be displayed in the list. The target data display position can correspond to a list component, and the list component can specifically refer to a card in the list. Furthermore, the target data display position can include one or more display areas, and the data types of the data displayed in different display areas can be different. The layout type can represent the layout characteristics of the target data display position, and different layout types represent different layout characteristics.

[0060] Exemplarily, the layout type may include a graphic type, a pure text type, a video text type, an assembly type, and the like. The data display position of the graphic type may include a header element, a picture element, a text element, and a bottom element; the data display position of the pure text type may include a header element, a text element, and a bottom element; the data display position of the video text type may include a header element, a video frame element, and a bottom element. The data display position of the assembly type may include a header element, an assembly element, and a bottom element. Among them, the header element may specifically include data such as the user's avatar, user name, user tag, posting time, user IP address, server IP address, etc.; the bottom element may include data such as a forwarding icon, a comment icon, and a like icon; the picture element may include a single picture or multiple pictures; the text element may include data such as a title text and a body text; the assembly element may include the assembly data of a virtual object; the video frame element may include one or more frames of images in the video.

[0061] Furthermore, the data display position of the graphic type may include a header element display area, a picture element display area, a text element display area, and a bottom element display area. The layout styles and display positions of different display areas may be different, that is, different display areas may correspond to different containers.

[0062] It should be noted that the above examples are only used to help technicians understand the relevant concepts in this specification and are not used to limit the relevant concepts.

[0063] According to an optional embodiment of the present specification, the data to be displayed may include multiple sub-data to be displayed, and the data types of the multiple sub-data to be displayed are different. Accordingly, according to the data type, determining the layout type of the target data display position corresponding to the data to be displayed may include the following steps:

[0064] The layout type of the target data display position is determined according to a mapping relationship between a data type of each sub-data to be displayed and a preset layout type among the multiple sub-data to be displayed.

[0065] Optionally, the preset layout type can be obtained by predefinition, and can specifically include a picture and text type, a pure text type, a video type, a video and text type, a matching type, and the like.

[0066] In practical applications, determining the layout type of the target data display position according to the mapping relationship between the data type of each sub-data to be displayed and the preset layout type among the multiple sub-data to be displayed may include:

[0067] According to the data type of each sub-data to be displayed, determining whether the data type of each sub-data to be displayed matches the data types of each element included in the target layout type in the preset layout type, wherein the target layout type is any layout type in the preset layout type;

[0068] If so, the target layout type is determined as the layout type of the target data display position.

[0069] In actual implementation, data display positions of different layout types have different layout processing sub-units reused by corresponding layout processing units.

[0070] Exemplarily, for a data display position of a graphic type, the sub-units reused by the layout processing unit may include a header element layout processing sub-unit, a bottom element layout processing sub-unit, a picture element layout processing sub-unit and a text element layout processing sub-unit, and the text element layout processing sub-unit may be further divided into a body text layout processing sub-unit and a title text layout processing sub-unit; for a data display position of an accessory type, the sub-units reused by the layout processing unit may include a header element layout processing sub-unit, a bottom element layout processing sub-unit and an accessory element layout processing sub-unit.

[0071] By applying this embodiment, the layout type of the target data display position is determined according to the mapping relationship between the data type of each sub-data to be displayed and the preset layout type among multiple sub-data to be displayed. According to the layout type of the target data display position, the layout processing sub-unit required to be reused by the layout processing unit can be determined, so that different types of data can be laid out through different layout processing sub-units, and the reuse rate of the layout processing sub-units can be improved, thereby reducing system overhead, improving the pre-layout efficiency of the data to be displayed, and further improving the list rendering efficiency.

[0072] Step 106: Generate layout information of the target data display position according to the layout rule corresponding to the layout type.

[0073] In actual applications, on the basis of determining the layout type of the target data display position, the layout information of the target data display position may be generated according to the layout rule corresponding to the layout type.

[0074] Specifically, the layout rule can be understood as a rule for calculating the layout information of each display area in the target data display position. The layout information can be used to layout the display position and display size of each display area, thereby generating a container corresponding to each display area and determining the width, height, position information, etc. of the container.

[0075] According to an optional embodiment of the present specification, generating layout information of a target data display position according to a layout rule corresponding to a layout type may include the following steps:

[0076] Divide the multiple sub-data to be displayed according to the layout rule corresponding to the layout type to obtain dynamic sub-data groups and static sub-data groups;

[0077] Calculate the first layout information corresponding to each sub-data to be displayed in the dynamic sub-data group, and obtain the second layout information corresponding to each sub-data to be displayed in the static sub-data group;

[0078] The layout information of the target data display position is generated according to the first layout information and the second layout information.

[0079] In actual applications, multiple sub-data to be displayed can be divided into dynamic sub-data groups and static sub-data groups according to the layout rules corresponding to the layout types.

[0080] Optionally, the layout information of each sub-data to be displayed in the dynamic sub-data group can be obtained by dynamic layout calculation; the layout information of each sub-data to be displayed in the static sub-data group can directly obtain default layout information, or be calculated according to a fixed layout calculation method.

[0081] Specifically, the data types of the sub-data to be displayed in the dynamic sub-data grouping may include text type, multi-image type, etc.; the data types of the sub-data to be displayed in the static sub-data grouping may include avatar type, title type, single image type, fixed height card (equipment) type, etc.

[0082] In actual implementation, the dynamic sub-data and static sub-data in the data to be displayed can be separated, and the layout information of the display area corresponding to each sub-data can be calculated respectively through different layout calculation methods, so as to obtain the layout information of the entire target data display position.

[0083] It is easy to understand that the text length and text style of the text information in different cards can be different, and changes in the text font style, font size, line spacing, etc. can cause the width, height, and position of the text area to change. Therefore, according to an optional embodiment of the present specification, when the sub-data to be displayed in the dynamic sub-data group is text data, the text layout processing sub-unit can be called to dynamically calculate the layout information corresponding to the text display area.

[0084] Similarly, different information such as the number of pictures and picture arrangement styles in different cards may cause the layout structure of the multi-picture area to change. Therefore, according to another optional embodiment of the present specification, when the sub-data to be displayed in the dynamic sub-data group is multiple picture data, the multi-picture layout processing sub-unit may be called to dynamically calculate the layout information corresponding to the multi-picture display area.

[0085] In actual applications, the assembly data can be displayed in a fixed height and width assembly card in a fixed style; single image data and a preset number of image data (for example, nine images can form a nine-square grid image with a fixed style) can be displayed in a fixed layout structure; avatar and title areas, bottom areas, and other areas that are highly similar in different cards can all be displayed in a default style. Therefore, according to an optional embodiment of the present specification, when the sub-data to be displayed in the static sub-data group is configuration data, single image data, a preset number of image data, avatar and title data, and bottom data, the corresponding layout processing sub-units can be called respectively to obtain the corresponding default layout information or calculate the corresponding layout information according to a fixed calculation method.

[0086] Furthermore, during the list rendering process, a VDOM may be created for each data display position in the list. The list may correspond to a root node in the VDOM tree structure, the target data display position may be regarded as a trunk node in the VDOM tree structure, and each display area in the target data display position may be regarded as a leaf node in the VDOM tree structure.

[0087] By applying this embodiment, VDOM node optimization can be achieved by respectively calculating the first layout information corresponding to each sub-data to be displayed in the dynamic sub-data group, and obtaining the second layout information corresponding to each sub-data to be displayed in the static sub-data group. By controlling the VDOM node type and the trunk node, the layout change is transferred to the leaf node, which effectively avoids the main node change causing a large number of sub-node differences, thereby causing time-consuming Diff difference calculation and node redrawing overhead.

[0088] It should be noted that when the data display position slides out of the visible area, the created data display position can be recycled, that is, the list component can be recycled. While recycling, the data display position can be marked according to the layout type of the data display position, and the marked data display position can be put into the historical data display position set.

[0089] Accordingly, according to another optional embodiment of the present specification, generating layout information of a target data display position according to a layout rule corresponding to a layout type may also include the following steps:

[0090] According to the layout type, a target historical data display position corresponding to the historical layout type having the same layout type is obtained by screening from the historical data display position set;

[0091] Determine the historical layout information corresponding to the target historical data display position;

[0092] Generate layout information of the target data display location based on the historical layout information.

[0093] Specifically, the historical data display position set can be understood as a component instance set of the history list component, and the component instance set can be cel-pool.

[0094] In actual applications, when the data to be displayed is obtained by pulling, the data type of the data to be displayed can be determined, the layout type of the target data display position can be determined according to the data type, and the target historical data display position corresponding to the historical layout type with the same layout type can be screened from the historical data display position set according to the layout type. That is, according to the layout type of the target data display position, the historical component instance with the same layout type can be obtained from the cell-pool.

[0095] If the historical component instance with the same layout type cannot be screened out, the layout rules corresponding to the layout type can be used to divide multiple sub-data to be displayed, obtain dynamic sub-data grouping and static sub-data grouping steps, and calculate the layout information corresponding to the target data display position.

[0096] By applying this embodiment, by generating layout information of the target data display position according to historical layout information, it is possible to achieve layout reuse of VDOM nodes based on the marking information of historical VDOM nodes, reduce the mapping overhead of VDOM to native components, and achieve double-layer multiplexing from VDOM layer to native layer, thereby greatly improving rendering performance.

[0097] Step 108: Determine the display position of the target data display position in the target data display object according to the layout information, render the data to be displayed based on the display position, and generate the target data display object.

[0098] According to an optional embodiment of the present specification, when the layout information is obtained by calculation, the display position of the target data display position in the target data display object can be determined according to the layout information, and the data to be displayed can be rendered based on the display position to generate the target data display object.

[0099] According to another optional embodiment of the present specification, when the layout information is obtained by calculation, the layout information and the data to be displayed can be added to the data model corresponding to the target data display position; based on the layout information in the data model, a container corresponding to each display area is created and the container layout position and layout size are determined, and a component instance corresponding to the target data display position is generated; based on the component instance and the data to be displayed, the data to be displayed is rendered to generate a target data display object.

[0100] Specifically, the target data display object can be understood as a target list to be displayed. The display position can be understood as the display position of the target data display position in the target list.

[0101] Optionally, the display position may be determined according to the time when the data to be processed is pulled, in chronological order, and layout information.

[0102] In the actual implementation process, in order to avoid the problem of memory surge and program jamming caused by calculating and generating a large number of image resources at the same time during the rapid sliding of the list, asynchronous rendering can be used to render image type data, thereby improving rendering performance.

[0103] Accordingly, according to an optional embodiment of the present specification, the data to be displayed may include first sub-data to be displayed and second sub-data to be displayed, the data type of the second sub-data to be displayed is a picture, and the data type of the first sub-data to be displayed is a type other than a picture. Determining the display position of the target data display position at the target data display object according to the layout information may include the following steps:

[0104] Determine a first display position of the first sub-data to be displayed in the target data display object according to the layout information of the first sub-data to be displayed, and determine a second display position of the second sub-data to be displayed in the target data display object according to the layout information of the second sub-data to be displayed;

[0105] According to the first display position and the second display position, a display position of the target data display position in the target data display object is determined.

[0106] In actual applications, the containers of the display areas corresponding to the sub-data to be displayed may be laid out according to the layout information corresponding to the sub-data to be displayed.

[0107] Furthermore, rendering the data to be displayed based on the display position to generate the target data display object may include the following steps:

[0108] Rendering the first sub-data to be displayed at the first display position in a synchronous rendering manner to generate a first data rendering result;

[0109] Rendering the second sub-data to be displayed at the second display position in an asynchronous rendering manner to generate a second data rendering result;

[0110] A target data display object is generated according to the first data rendering result and the second data rendering result.

[0111] In actual applications, in the process of determining the first display position of the first sub-data to be displayed in the target data display object, the first sub-data to be displayed may be rendered at the first display position in a synchronous rendering manner to generate a first data rendering result.

[0112] Specifically, the first sub-data to be displayed may include text data, avatar and title data, bottom data, etc. The first data rendering result may include rendering results corresponding to text data, rendering results corresponding to avatar and title data, rendering results corresponding to bottom data, etc.

[0113] In actual applications, when the second display position of the second sub-data to be displayed in the target data display object is determined according to the layout information of the second sub-data to be displayed, the second sub-data to be displayed can be rendered at the second display position in an asynchronous rendering manner to generate a second data rendering result.

[0114] Specifically, the second sub-data to be displayed may include single-image data, multi-image data, dynamic image data, video data, etc. The second sub-data to be displayed may specifically be data that needs to perform a Decode operation, such as jpeg, png, webP, gif, etc. The second data rendering result may include a rendering result corresponding to one or more frames of image data.

[0115] By applying this embodiment, the second sub-data to be displayed is rendered at the second display position in an asynchronous rendering manner to generate a second data rendering result, which can avoid the problem of page element rendering blocking caused by time-consuming network download and image data decoding and decompression, thereby improving rendering performance.

[0116] According to an optional embodiment of the present specification, rendering the second sub-data to be displayed at the second display position in an asynchronous rendering manner to generate a second data rendering result may include the following steps:

[0117] Determine whether the second display position enters the visible area, wherein the visible area is used to visually display the second sub-data to be displayed;

[0118] If so, the second sub-data to be displayed is decoded to obtain decoded data, and the decoded data is rendered at the second display position to generate a second data rendering result.

[0119] Specifically, the visible area can be understood as an area located in the user display screen of the client, or can be understood as an area located in the viewport of the interactive interface. The visible area can be used to visualize the data rendering result.

[0120] Optionally, whether the second display position enters the visible area may be determined by monitoring a scrolling event, or by detecting a relative position between the second display position and the visible area.

[0121] In practical applications, when it is detected that the second display position enters the visible area, the second sub-data to be displayed can be decoded (decoded, decompressed) to obtain one or more frames of image data corresponding to the second sub-data to be displayed, and then asynchronously rendered and displayed.

[0122] By applying this embodiment, by judging whether the second display position enters the visible area, and performing a Decode operation when it enters the visible area, the Decode operation and rendering of the image elements can be controlled, and resources are downloaded and Decoded only when the image needs to be displayed, thereby avoiding the problem of rapid memory growth caused by centralized downloading and decoding of a large number of images in the list, and improving system performance and rendering efficiency.

[0123] Furthermore, for image elements containing multi-frame image data such as GIF dynamic images or video data, one frame or a smaller number of multi-frame images can be determined to be decoded according to the interval time of each image frame and the screen refresh scheduling interval, so as to control the decoding and rendering display of the source data according to the element display position, screen refresh frequency and multi-frame display interval, thereby avoiding the problem of excessive CPU usage and memory surge caused by the decoding of a large number of multi-frame resources due to rapid sliding of the list when a large number of dynamic images or videos appear in the list elements.

[0124] According to an optional embodiment of the present specification, after rendering the data to be displayed based on the display position and generating the target data display object, the following steps may also be included:

[0125] Based on the display position, determine whether the target data display position leaves the visible area;

[0126] If so, the target data display position is added to the historical data display position set, and the target data display position is marked based on the layout type.

[0127] Optionally, based on the display position, whether the target data display position leaves the visible area can be judged by monitoring the scroll event, or by detecting the relative position between the display position of the target data display position and the visible area.

[0128] In actual applications, when a card slides out of the visible area, the component instance corresponding to the card can be marked with the layout type and put into the c ll-pool, and the data model corresponding to the card can be put into the cache, thereby caching and recycling historical component data. In addition, through c ll-pool, the reuse rate of the created component instances can be increased, thereby improving the efficiency of list rendering.

[0129] It should be noted that when the layout type corresponding to the target data display position of the new data to be displayed is the same as the layout type of the historical component instance, if the new target data display position contains a text display area or other display areas that require dynamic calculation of layout information, the historical component instance of the corresponding layout type can be obtained from the celi-pool, and the data model corresponding to the historical component instance can be obtained from the cache, and the layout information of the text display area or other display areas that require dynamic calculation of layout information can be read from the data model, and the layout information of the area can be adjusted according to the new data to be displayed to obtain a new data model. Based on the new data model and the historical component instance, the display page information is rendered.

[0130] According to an optional embodiment of the present specification, the data to be displayed may include network source data; accordingly, according to the data type, determining the layout type of the target data display position corresponding to the data to be displayed may include the following steps:

[0131] According to the data type, determine the layout type of the target card corresponding to the network source data.

[0132] Determining the display position of the target data display position in the target data display object according to the layout information, rendering the data to be displayed based on the display position, and generating the target data display object may include:

[0133] According to the layout information, the display position of the target card in the target list is determined, and the network source data is rendered based on the display position to generate the target list.

[0134] By applying this embodiment, by determining the layout type of the target data display position corresponding to the data to be displayed, the layout calculation of the data to be displayed can be performed according to the layout rule corresponding to the layout type, and the layout information of the target data display position can be obtained, so that the layout information is generated based on the layout type, the reuse rate of the layout information calculation method is improved, and the system overhead is reduced, thereby improving the layout information generation efficiency; by generating layout information before rendering the data to be displayed and determining the display position according to the layout information, the pre-layout of the target data display position in the target data display object can be achieved, thereby improving the rendering efficiency of the target data display object.

[0135] The following combination Figure 2 , taking the application of the data processing method provided in this specification in the list rendering scenario as an example, the data processing method is further described. Figure 2 A processing flow chart of a data processing method provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0136] Step 202: Pull the network source data required by the list, and send the network source data to the data classification module of the pre-processing layer.

[0137] See also Figure 3 , Figure 3A schematic diagram of the architecture design of a data processing method provided by an embodiment of the present specification is shown. Specifically, the data processing method is applied to a list rendering system, and the list rendering system includes a preprocessing layer, a list component module (List), an image management module, and a cache module. Among them, the preprocessing layer includes a data classification module, a pre-layout processing module, and a data model. The pre-layout processing module can reuse one or more pre-layout processing sub-units, and different pre-layout processing sub-units can perform layout calculations for different types of data. The cache module may include a set of historical component instances, namely, cell-pool. The preprocessing layer can receive network data pulled by the system, that is, network source data, and perform data classification on the network data.

[0138] Step 204: The data classification module receives the target network source data corresponding to the target card and classifies the target network source data according to the data characteristics, and determines the data type of each sub-data in the target network source data.

[0139] Specifically, the target card can be understood as the card that currently needs to be rendered in the list.

[0140] Step 206: Send the data type of each sub-data to the pre-layout processing module, and the pre-layout processing module determines the layout type of the target card according to the mapping relationship between the data type of each sub-data and the preset card layout type.

[0141] Step 208: The pre-layout processing module separates the dynamic part and the static part in the layout element according to the layout type of the target card, determines the pre-layout processing sub-units to be reused, and calls the pre-layout processing sub-units to obtain the layout information of each display area in the target card.

[0142] Step 210: Based on the layout information and the target network source data, a data model corresponding to the target card is constructed.

[0143] In actual applications, the pulled network source data is sent to the preprocessing layer, and the data classification is performed through the data classification module. The pre-layout processing type is determined according to the source data through the pre-layout processing module, and the dynamic and static areas of the layout elements are separated according to the corresponding layout rules. The layout size and position information of the layout elements in different areas are calculated respectively. The layout information of the list elements can be confirmed before rendering, so that there is no need to perform layout calculations during the sliding of the list elements. The layout rendering efficiency of the card elements can be accelerated, the calculation overhead in the card rendering process can be reduced, and the rendering frame drop problem caused by calculation delays can be effectively reduced.

[0144] That is, based on the pre-layout processing module, it is possible to implement pre-layout processing of list elements, thereby improving rendering efficiency during list rendering.

[0145] Step 212: Send the data model to the list component module. The list component module performs preliminary layout rendering according to the type and layout information of the data model, creates containers for each element, and determines the width, height and position information of the container, thereby determining the position information of the entire card in the list.

[0146] Step 214: Synchronously render network source data such as text and labels.

[0147] In actual applications, VDOM node optimization can be achieved based on the list component module. On the one hand, by controlling the VDOM node type and trunk node, the layout change is transferred to the leaf node, which can effectively avoid the main node change causing a large number of child node differences, thereby causing Diff difference calculation time-consuming and node redrawing overhead; on the other hand, marking the same type of VDOM nodes can achieve layout reuse of VDOM nodes, reduce the VDOM to native component mapping overhead, avoid the performance overhead and memory jitter caused by repeated creation and destruction, and realize double-layer reuse from VDOM layer to native layer, improve the efficiency of the card's next rendering, and greatly improve rendering performance.

[0148] Step 216: Asynchronously render network source data such as videos and pictures.

[0149] Specifically, the resources required for the image elements can be downloaded in advance through the image management module, and whether to decode the compressed format images (jpeg, png, webP, gif, etc.) is analyzed according to the image display position, and the decoded resources are rendered and displayed.

[0150] Furthermore, for resources such as GIFs and videos that contain multiple frames of images, in order to avoid a large amount of memory overhead caused by one-time decoding, decoding can be performed according to the image frame interval and the screen refresh scheduling interval, so as to display the currently required one frame or a small number of frames of images.

[0151] In actual applications, based on the image management module, the asynchronous rendering of image elements can avoid the problem of page element rendering blocking caused by time-consuming network downloads and decoding. By controlling the display and decoding of image elements, resources are downloaded and decoded only when the image needs to be displayed, which can avoid the problem of rapid memory growth caused by the centralized download and decoding of a large number of images in the list. In addition, it can also realize the control of multi-frame image resources (such as GIF, video), and control the decoding and display of source data according to the element display position, screen refresh frequency and multi-frame display interval, so as to avoid the problems of excessive CPU usage and memory surge caused by the decoding of a large number of multi-frame resources due to the rapid sliding of the list.

[0152] The picture management module can also be responsible for recycling picture resources when the picture slides out of the visual interface. The picture resources can be recycled to the cache or directly destroyed.

[0153] Step 218: After rendering the elements in the target card, when it is detected that the target card slides out of the screen, put the target card into the cell-pool and mark the card type.

[0154] In the actual implementation process, the next time a card of the same type needs to be displayed, the component instance corresponding to the card can be directly extracted from the celi-pool for use, avoiding the overhead of repeated creation and destruction.

[0155] See also Figure 3 , Figure 3 The cell-pool in the figure shows different component instance types, including Cell A, Cell B, Cell C, and Cell D, where A, B, C, and D represent different component instance types. In actual applications, the types of component instances may include plain text, graphics, audio, video, and matching cards, etc., which can be determined according to the needs of actual applications.

[0156] Step 220: In response to the user exiting the list, destroying the resources in the list creation process.

[0157] Exemplarily, the resources in the list creation process may include image cache resources, cel-pool resources, etc.

[0158] By applying this embodiment, the three modules of pre-layout processing module, list component module, and image management module work together to solve the performance bottleneck encountered in the process of rendering from network source data to list elements, improve the reusability of component instances, improve the efficiency of pre-layout calculations, avoid problems such as memory surge and system crashes caused by rapid sliding of lists, thereby accelerating list rendering and greatly improving system performance and rendering efficiency of list objects.

[0159] Corresponding to the above method embodiment, this specification also provides a data processing device embodiment, Figure 4 FIG. 1 is a schematic diagram showing the structure of a data processing device provided by an embodiment of the present specification. Figure 4 As shown, the device comprises:

[0160] The acquisition module 402 is configured to acquire the data to be displayed and determine the data type corresponding to the data to be displayed.

[0161] The determination module 404 is configured to determine the layout type of the target data display position corresponding to the data to be displayed according to the data type.

[0162] The generating module 406 is configured to generate layout information of the target data display position according to the layout rule corresponding to the layout type.

[0163] Rendering module 408: configured to determine the display position of the target data display position in the target data display object according to the layout information, and render the data to be displayed based on the display position to generate the target data display object.

[0164] Optionally, the data to be displayed includes a plurality of sub-data to be displayed, and the data types of the plurality of sub-data to be displayed are different; the determination module 404 is further configured to:

[0165] The layout type of the target data display position is determined according to a mapping relationship between a data type of each sub-data to be displayed and a preset layout type among the multiple sub-data to be displayed.

[0166] Optionally, the generating module 406 is further configured to:

[0167] Divide the multiple sub-data to be displayed according to the layout rule corresponding to the layout type to obtain dynamic sub-data groups and static sub-data groups;

[0168] Calculate the first layout information corresponding to each sub-data to be displayed in the dynamic sub-data group, and obtain the second layout information corresponding to each sub-data to be displayed in the static sub-data group;

[0169] The layout information of the target data display position is generated according to the first layout information and the second layout information.

[0170] Optionally, the generating module 406 is further configured to:

[0171] According to the layout type, a target historical data display position corresponding to the historical layout type having the same layout type is obtained by screening from the historical data display position set;

[0172] Determine the historical layout information corresponding to the target historical data display position;

[0173] Generate layout information of the target data display location based on the historical layout information.

[0174] Optionally, the data to be displayed includes first sub-data to be displayed and second sub-data to be displayed, the data type of the second sub-data to be displayed is a picture, and the data type of the first sub-data to be displayed is other types except pictures; the rendering module 408 is further configured to:

[0175] Determine a first display position of the first sub-data to be displayed in the target data display object according to the layout information of the first sub-data to be displayed, and determine a second display position of the second sub-data to be displayed in the target data display object according to the layout information of the second sub-data to be displayed;

[0176] According to the first display position and the second display position, a display position of the target data display position in the target data display object is determined.

[0177] Optionally, the rendering module 408 is further configured to:

[0178] Rendering the first sub-data to be displayed at the first display position in a synchronous rendering manner to generate a first data rendering result;

[0179] Rendering the second sub-data to be displayed at the second display position in an asynchronous rendering manner to generate a second data rendering result;

[0180] A target data display object is generated according to the first data rendering result and the second data rendering result.

[0181] Optionally, the rendering module 408 is further configured to:

[0182] Determine whether the second display position enters the visible area, wherein the visible area is used to visually display the second sub-data to be displayed;

[0183] If so, the second sub-data to be displayed is decoded to obtain decoded data, and the decoded data is rendered at the second display position to generate a second data rendering result.

[0184] Optionally, the acquisition module 402 is further configured to:

[0185] Identify the characteristic information of the data to be displayed, and determine the data type corresponding to the data to be displayed according to the characteristic information.

[0186] Optionally, the data processing device further includes a marking module configured to:

[0187] Based on the display position, determine whether the target data display position leaves the visible area;

[0188] If so, the target data display position is added to the historical data display position set, and the target data display position is marked based on the layout type.

[0189] Optionally, the data to be displayed includes network source data; the determination module 404 is further configured to:

[0190] According to the data type, determine the layout type of the target card corresponding to the network source data;

[0191] Optionally, the rendering module 408 is further configured to:

[0192] According to the layout information, the display position of the target card in the target list is determined, and the network source data is rendered based on the display position to generate the target list.

[0193] By applying this embodiment, by determining the layout type of the target data display position corresponding to the data to be displayed, the layout calculation of the data to be displayed can be performed according to the layout rule corresponding to the layout type, and the layout information of the target data display position can be obtained, so that the layout information is generated based on the layout type, the reuse rate of the layout information calculation method is improved, and the system overhead is reduced, thereby improving the layout information generation efficiency; by generating layout information before rendering the data to be displayed and determining the display position according to the layout information, the pre-layout of the target data display position in the target data display object can be achieved, thereby improving the rendering efficiency of the target data display object.

[0194] The above is a schematic scheme of a data processing device of this embodiment. It should be noted that the technical scheme of the data processing device and the technical scheme of the above data processing method belong to the same concept, and the details of the technical scheme of the data processing device that are not described in detail can be referred to the description of the technical scheme of the above data processing method.

[0195] Figure 5 The structure block diagram of a computing device 500 provided according to an embodiment of the present specification is shown. The components of the computing device 500 include but are not limited to a memory 510 and a processor 520. The processor 520 is connected to the memory 510 via a bus 530, and the database 550 is used to store data.

[0196] The computing device 500 also includes an access device 540 that enables the computing device 500 to communicate via one or more networks 560. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of network interface, wired or wireless (e.g., a network interface card (NIC)), such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, and a Near Field Communication (NFC).

[0197] In one embodiment of the present specification, the above components of the computing device 500 and Figure 5 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 5 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0198] The computing device 500 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 500 may also be a mobile or stationary server.

[0199] The processor 520 is used to execute the following computer executable instructions, which implement the steps of the above data processing method when executed by the processor.

[0200] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above data processing method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above data processing method.

[0201] An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which can implement the steps of the above-mentioned data processing method when executed by a processor.

[0202] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above data processing method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above data processing method.

[0203] An embodiment of the present specification also provides a computer program product, including a computer program / instruction, which implements the steps of the above data processing method when executed by a processor.

[0204] The above is a schematic scheme of a computer program product of this embodiment. It should be noted that the technical scheme of the computer program product and the technical scheme of the above data processing method belong to the same concept, and the details not described in detail in the technical scheme of the computer program product can be referred to the description of the technical scheme of the above data processing method.

[0205] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0206] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0207] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0208] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0209] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A data processing method, characterized in that: include: Acquire data to be displayed, and determine the data type corresponding to the data to be displayed; Determining, according to the data type, a layout type of a target data display position corresponding to the data to be displayed; Generating layout information of the target data display position according to the layout rule corresponding to the layout type; According to the layout information, the display position of the target data display position in the target data display object is determined, and the data to be displayed is rendered based on the display position to generate the target data display object.

2. The method according to claim 1, characterized in that The data to be displayed includes a plurality of sub-data to be displayed, and the data types of the plurality of sub-data to be displayed are different; The step of determining the layout type of the target data display position corresponding to the to-be-displayed data according to the data type includes: The layout type of the target data display position is determined according to a mapping relationship between a data type of each of the plurality of sub-data to be displayed and a preset layout type.

3. The method according to claim 2, characterized in that The generating the layout information of the target data display position according to the layout rule corresponding to the layout type includes: Divide the plurality of sub-data to be displayed according to the layout rule corresponding to the layout type to obtain dynamic sub-data groups and static sub-data groups; respectively calculating first layout information corresponding to each sub-data to be displayed in the dynamic sub-data group, and obtaining second layout information corresponding to each sub-data to be displayed in the static sub-data group; The layout information of the target data display position is generated according to the first layout information and the second layout information.

4. The method according to claim 2, characterized in that: The generating the layout information of the target data display position according to the layout rule corresponding to the layout type includes: According to the layout type, a target historical data display position corresponding to the same historical layout type as the layout type is obtained by screening from the historical data display position set; Determine the historical layout information corresponding to the target historical data display position; The layout information of the target data display position is generated according to the historical layout information.

5. The method according to claim 1, characterized in that The data to be displayed includes first sub-data to be displayed and second sub-data to be displayed, the data type of the second sub-data to be displayed is a picture, and the data type of the first sub-data to be displayed is other types except pictures; The step of determining the display position of the target data display position in the target data display object according to the layout information includes: Determine a first display position of the first sub-data to be displayed in a target data display object according to the layout information of the first sub-data to be displayed, and determine a second display position of the second sub-data to be displayed in the target data display object according to the layout information of the second sub-data to be displayed; The display position of the target data display position in the target data display object is determined according to the first display position and the second display position.

6. The method according to claim 5, characterized in that The rendering of the to-be-displayed data based on the display position to generate the target data display object includes: Rendering the first to-be-displayed sub-data at the first display position in a synchronous rendering manner to generate a first data rendering result; Rendering the second sub-data to be displayed at the second display position in an asynchronous rendering manner to generate a second data rendering result; The target data display object is generated according to the first data rendering result and the second data rendering result.

7. The method according to claim 6, characterized in that The step of rendering the second sub-data to be displayed at the second display position in an asynchronous rendering manner to generate a second data rendering result includes: Determining whether the second display position enters a visible area, wherein the visible area is used to visually display the second sub-data to be displayed; If so, the second sub-data to be displayed is decoded to obtain decoded data, and the decoded data is rendered at the second display position to generate a second data rendering result.

8. The method according to claim 1, characterized in that: The determining the data type corresponding to the data to be displayed includes: Identify characteristic information of the data to be displayed, and determine a data type corresponding to the data to be displayed according to the characteristic information.

9. The method according to claim 1, characterized in that: After rendering the data to be displayed based on the display position to generate the target data display object, the method further includes: Based on the display position, determining whether the target data display position leaves the visible area; If so, the target data display position is added to the historical data display position set, and the target data display position is marked based on the layout type.

10. The method according to claim 1, characterized in that The data to be displayed includes network source data; The step of determining the layout type of the target data display position corresponding to the to-be-displayed data according to the data type includes: Determining, according to the data type, a layout type of a target card corresponding to the network source data; The step of determining the target data display position at the display position of the target data display object according to the layout information, and rendering the data to be displayed based on the display position to generate the target data display object includes: The display position of the target card in the target list is determined according to the layout information, and the network source data is rendered based on the display position to generate the target list.

11. A data processing device, characterized in that: include: An acquisition module is configured to acquire the data to be displayed and determine the data type corresponding to the data to be displayed; A determination module, configured to determine, according to the data type, a layout type of a target data display position corresponding to the data to be displayed; A generating module, configured to generate layout information of the target data display position according to a layout rule corresponding to the layout type; The rendering module is configured to determine the display position of the target data display position in the target data display object according to the layout information, and render the data to be displayed based on the display position to generate the target data display object.

12. A computing device, characterized in that: include: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer program / instructions are executed by the processor, the steps of the data processing method according to any one of claims 1 to 10 are implemented.

13. A computer-readable storage medium, characterized in that: It stores a computer program / instruction, which, when executed by a processor, implements the steps of the data processing method described in any one of claims 1 to 10.

14. A computer program product, characterized in that The invention comprises a computer program / instruction, which, when executed by a processor, implements the steps of the data processing method according to any one of claims 1 to 10.

Citation Information

Cited By

  • Answer data visualization method and device and storage medium

    CN121092150A

  • Answer data visualization method, device, and storage medium

    CN121092150B