Rendering Method of Form, Electronic Device, Storage Medium and Program Product
By dividing the form into multiple groups to be rendered and rendered separately using CPU, GPU or cloud server, the problem of low form rendering efficiency is solved, achieving more efficient rendering and better user experience.
Patent Information
- Application Number
- CN202510361749.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-26
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-03-26
AI Technical Summary
In the prior art, form rendering efficiency is low and user experience is poor, mainly due to the reliance on a single resource module such as CPU for rendering.
The form to be rendered is divided into multiple groups to be rendered, the attribute information of each group is obtained, and the target resource module is determined based on the attribute information to be a CPU, GPU or cloud server. The corresponding groups are rendered by these resource modules respectively to make full use of heterogeneous resources.
It improves the rendering efficiency of the form, improves the user experience, reduces the CPU load, and enhances the rendering speed and user interaction performance.
Smart Images

Figure CN119883652B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technologies, and in particular, to a method for rendering a form, an electronic device, a storage medium, and a program product. Background Art
[0002] With the rapid development of computer technologies, World Wide Web (Web) applications have been widely used in various fields. Among them, a form is one of the core components for a Web application to interact with users, and the rendering performance of the form will directly affect the user experience.
[0003] In related technologies, when rendering a form, it is usually to use a certain resource module, such as the resources of a Central Processing Unit (CPU), for rendering. However, the efficiency of form rendering in the above manner is low, and the user experience is poor. Summary of the Invention
[0004] This application provides a method for rendering a form, an electronic device, a storage medium, and a program product, so as to at least solve the problem that the efficiency of form rendering in related technologies is low and the user experience is poor.
[0005] This application provides a method for rendering a form, including:
[0006] Obtain a form to be rendered;
[0007] Perform field division on the form to be rendered to obtain a plurality of groups to be rendered, where each group to be rendered includes one field or multiple fields;
[0008] Obtain the attribute information of the plurality of groups to be rendered;
[0009] According to the attribute information of the plurality of groups to be rendered, determine the target resource module for rendering each group to be rendered, where the target resource module is a first processor, a second processor, or a cloud server, and the image processing capability of the first processor is less than that of the second processor;
[0010] Render the group to be rendered corresponding to the target resource module through the target resource module to obtain a rendered form.
[0011] This application also provides an electronic device, including: a memory for storing a computer program; a controller for implementing the steps of any of the above methods for rendering a form when executing the computer program.
[0012] This application also provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a controller, the steps of any of the above methods for rendering a form are implemented.
[0013] The present application also provides a computer program product, including a computer program, which implements the steps of any one of the above form rendering methods when executed by a controller.
[0014] Through the present application, the form to be rendered obtained is divided into fields to obtain multiple groups to be rendered. By obtaining the attribute information of the multiple groups to be rendered, the target resource module for rendering each group to be rendered is determined according to the attribute information, where the target resource module is the first processor, the second processor or the cloud server. Furthermore, through the target resource module, the group to be rendered corresponding to the target resource module is rendered, and finally the rendered form is obtained. The method of the present application makes full use of the resources of heterogeneous resource modules, namely the first processor, the second processor or the cloud server. When rendering the form to be rendered, by using the heterogeneous resource modules to render the corresponding groups to be rendered in the form to be rendered respectively, the rendering efficiency of the form is improved, and thus the user experience is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0016] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0017] Figure 2 It is a schematic flowchart of a form rendering method provided by an embodiment of the present application;
[0018] Figure 3 It is a task dependency graph provided by an embodiment of the present application;
[0019] Figure 4 It is a schematic flowchart of a method for determining the target resource module for rendering each group to be rendered provided by an embodiment of the present application;
[0020] Figure 5 It is a schematic flowchart of another method for determining the target resource module for rendering each group to be rendered provided by an embodiment of the present application;
[0021] Figure 6 It is a schematic flowchart of a method for rendering the corresponding group to be rendered through the target resource module provided by an embodiment of the present application;
[0022] Figure 7 It is a schematic flowchart of a method for rendering each group to be rendered according to the rendering order provided by an embodiment of the present application;
[0023] Figure 8 Schematic structural diagram of a form rendering device provided by an embodiment of the present application;
[0024] Figure 9 Schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0025] Next, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0026] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0027] 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 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 need to comply with relevant laws, regulations and standards, and corresponding operation entrances are provided for users to select authorization or rejection.
[0028] With the rapid development of computer technology, Web applications are widely used in multiple scenarios, and their performance optimization has become a key factor in improving user experience and business efficiency. The performance of Web applications not only affects the page loading speed but also directly affects important indicators such as user satisfaction, retention rate, and search engine optimization ranking. Therefore, it is necessary to continuously explore and apply new technical means to improve the performance of Web applications.
[0029] In Web applications, forms are one of the core components for intelligent terminals to interact with users. Forms play an important role in data input, user interaction, and business processing. Therefore, the rendering performance of forms will directly affect the performance of Web applications.
[0030] In the related art, when rendering a form to be rendered, most rely on a single resource module. For example, they rely on the resources in the CPU for rendering. However, the above method has low rendering efficiency and affects the user experience.
[0031] Therefore, in view of the above technical problems in the prior art, the inventor found in the research process that intelligent terminals usually have a variety of computing resources, including CPU resources, Graphics Processing Unit (GPU) resources, and cloud server resources. If the above-mentioned multiple computing resources can be used simultaneously to render the form to be rendered, the rendering speed of the form to be rendered can be accelerated. Therefore, the present application proposes a form rendering method, an electronic device, a storage medium, and a program product. Specifically, after obtaining the form to be rendered, the form to be rendered is divided into multiple groups to be rendered, the attribute information of each group to be rendered is obtained, and then the target resource module for rendering each group to be rendered is determined according to the attribute information. The target resource module can be the CPU, GPU, or cloud server. Then, the CPU, GPU, or cloud server renders their respective corresponding groups to be rendered. After the CPU, GPU, or cloud server finishes rendering their respective corresponding groups to be rendered, the rendered form is obtained.
[0032] To facilitate the understanding of the method of the present application, it is described through Figure 1 the application scenario shown in Figure 1 , Figure 1 FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application. In this application scenario, it includes user 01, intelligent terminal 02, and cloud server 03. Among them, the intelligent terminal 02 includes, but is not limited to, a first processor 021 and a second processor 022. The first processor 021 can be a CPU, and the second processor 022 can be a GPU.
[0033] Among them, after user 01 determines the page to be browsed in intelligent terminal 02, intelligent terminal 02 obtains the form to be rendered corresponding to this page, and performs field division on the form to be rendered to obtain multiple groups to be rendered, and obtains the attribute information of the multiple groups to be rendered. Intelligent terminal 02 determines whether each group to be rendered is to be rendered by the first processor 021, the second processor 022, or the cloud server 03 according to the attribute information of the multiple groups to be rendered. After determining the result, the first processor 021 renders its corresponding group to be rendered, the second processor 022 renders its corresponding group to be rendered, and the cloud server 03 renders its corresponding group to be rendered. Finally, the rendered form is obtained for user 01 to browse. Among them, the rendered form is the page that the user can browse.
[0034] It is understandable that the application scenarios of the above examples are only for illustrative purposes. In this application, the types of the intelligent terminal 02 and the cloud server 03 are not limited, and the types of the first processor 021 and the second processor 022 included in the intelligent terminal 02 are also not limited. The above can be determined according to the actual application situation and so on.
[0035] To enable those skilled in the art of this technical field to better understand the solution of this application, the following further elaborates on this application in conjunction with the accompanying drawings and specific implementation manners.
[0036] Please refer to Figure 2 , Figure 2 which is a schematic flowchart of a method for rendering a form provided by an embodiment of this application. The execution subject of this method can be a form rendering prediction device. This form rendering device can be implemented through a computer program; it can also be implemented through a medium storing relevant computer programs, such as a USB flash drive and / or an optical disc, etc. Or, it can also be implemented through an entity device integrated or installed with relevant computer programs, such as an electronic device. The electronic device can be an intelligent terminal such as a smart phone, a computer, a server, a server cluster, and a computer. This method can include the following steps:
[0037] S201. Obtain the form to be rendered.
[0038] When a user enters the search address of a certain Web application in the browser address bar of a certain intelligent terminal or clicks a link on a certain page to request the page to be browsed, the browser will send a request to the server that manages this Web application. After receiving this request, the server that manages this Web application will generate a response, which will include rendering information, and return this response to this intelligent terminal. Thus, the intelligent terminal obtains the form to be rendered according to the returned response.
[0039] S202. Divide the form to be rendered into fields to obtain multiple groups to be rendered, and each group to be rendered includes one field or multiple fields.
[0040] Optionally, after obtaining the form to be rendered, group it according to the data types in the form to be rendered. For example, numeric input fields can be grouped into one group, and selection fields can be grouped into another group, etc., so as to obtain multiple groups to be rendered.
[0041] Optionally, after obtaining the form to be rendered, it can also be grouped according to the business logic in the form to be rendered. For example, information category fields can be grouped into one group, and operation step fields can be grouped into another group, etc., so as to obtain multiple groups to be rendered.
[0042] It is understandable that the above examples are only for illustrative purposes and do not limit this application.
[0043] By dividing the form to be rendered into fields, the dependency relationships between the groups to be rendered can also be obtained. Based on the divided groups to be rendered and the dependency relationships between them, the data structure of the form to be rendered can be obtained.
[0044] Each group to be rendered may include only one field or multiple fields.
[0045] S203. Obtain the attribute information of multiple groups to be rendered.
[0046] In this embodiment, the attribute information of the groups to be rendered includes but is not limited to: the rendering duration information of each group to be rendered, the dependency relationships between the groups to be rendered, the pixel values or rendering data amounts of each group to be rendered, etc.
[0047] Optionally, the rendering duration information of each group to be rendered can be predicted. For example, the rendering duration used for historical rendering data amounts similar to the current rendering data amount of the group to be rendered can be determined according to the rendering data amount of the group to be rendered, and this rendering duration can be predicted as the rendering duration of the current group to be rendered. Among them, the rendering data amount of the group to be rendered can be directly obtained from the rendering information.
[0048] Optionally, a task dependency graph can be constructed according to the data structure of the form to be rendered by using a preset breadth-first search (BFS) algorithm. BFS starts from the root node (starting point), sequentially accesses all the directly adjacent nodes of the root node, and then accesses all the adjacent nodes of the nodes in the first layer, so as to identify the relationships between the nodes, that is, obtain the dependency relationships between the groups to be rendered.
[0049] Figure 3 A task dependency graph provided by an embodiment of the present application is shown in Figure 3 As shown, the nodes can represent the groups to be rendered, and the edges can represent the dependency relationships between the groups to be rendered. For example, assuming that each group to be rendered includes only a single field, then field A has dependency relationships with field B and field C respectively, field B and field C have dependency relationships with field D respectively, and field D has a dependency relationship with field E.
[0050] Optionally, the pixel values or rendering data amounts of each group to be rendered can also be directly obtained from the rendering information.
[0051] S204. Determine the target resource module for rendering each group to be rendered according to the attribute information of the multiple groups to be rendered. The target resource module is the first processor, the second processor, or the cloud server.
[0052] Among them, the image processing ability of the first processor is less than that of the second processor.
[0053] After obtaining the attribute information of multiple groups to be rendered, it is possible to determine which resource module specifically renders each group to be rendered according to the attribute information of each group to be rendered.
[0054] In this embodiment, the resource module may include a first processor, a second processor, and a cloud server. The first processor may be a CPU, and the second processor may be a GPU.
[0055] In this embodiment, the CPU and the GPU cooperate in rendering, which can reduce the CPU load caused by only using the CPU for rendering in the related art. When the GPU renders, it can achieve GPU-accelerated rendering based on the Web Graphics Library (WebGL) technology or the Web Graphics Processing Unit (WebGPU) technology. At the same time, the cloud server is coordinated to reduce the CPU load and GPU load in the intelligent terminal. The cloud server uses an efficient communication mechanism, such as the WebSocket mechanism, to achieve coordination, so as to improve the real-time performance and stability of data transmission.
[0056] S205. Render the group to be rendered corresponding to the target resource module through the target resource module to obtain the rendered form.
[0057] After determining the target resource module for rendering each group to be rendered, the corresponding target resource module can be scheduled through the task scheduler module in the intelligent terminal. The target resource module renders its corresponding group to be rendered, that is, the CPU renders its corresponding group to be rendered, the GPU renders its corresponding group to be rendered, and the cloud server renders its corresponding group to be rendered, so as to obtain the rendered form.
[0058] In the above embodiment of the present application, the form to be rendered is obtained, and the obtained form to be rendered is field-divided to obtain multiple groups to be rendered. And the attribute information of the multiple groups to be rendered is obtained, and the target resource module for rendering each group to be rendered is determined according to the attribute information. The target resource module is the first processor, the second processor, or the cloud server. Furthermore, the group to be rendered corresponding to the target resource module is rendered through the target resource module, and finally the rendered form is obtained. The method of this embodiment makes full use of the resources of the heterogeneous resource modules, namely the first processor, the second processor, or the cloud server. When rendering the form to be rendered, by using the heterogeneous resource modules to respectively render the corresponding groups to be rendered in the form to be rendered, the rendering efficiency of the form is improved, and thus the user experience is enhanced.
[0059] Further, based on the above embodiments, if the attribute information includes the rendering duration information of each rendering group to be rendered and the dependency relationship between the rendering groups to be rendered, the following embodiments will illustrate the process of determining the target resource module for rendering each rendering group to be rendered according to the attribute information of multiple rendering groups to be rendered.
[0060] Please refer to Figure 4 , Figure 4 which is a schematic flowchart of a method for determining the target resource module for rendering each rendering group to be rendered provided by an embodiment of the present application. The method may include the following steps:
[0061] S401. Obtain the current resource usage data of the first processor, the second processor, and the cloud server.
[0062] The current resource usage data of the first processor, i.e., the CPU, the current resource usage data of the second processor, i.e., the GPU, and the current resource usage data of the cloud server can be obtained respectively through the resource manager module in the intelligent terminal.
[0063] S402. Input the current resource usage data of the first processor, the second processor, and the cloud server, the rendering duration information of each rendering group to be rendered, and the dependency relationship between the rendering groups to be rendered into a pre-trained scheduling model, and output the target resource module corresponding to each rendering group to be rendered.
[0064] In the present application, the scheduling model is pre-trained. Specifically, training data is obtained, where the training data includes the rendering duration information of each rendering group in the historical form, the dependency relationship between the rendering groups in the historical form, and the resource usage data of the resource module used for rendering each rendering group in the historical form at that time. The initial neural network model is pre-trained using the above training data until the preset convergence condition is met, and a trained scheduling model is obtained.
[0065] Pre-training is a strategy for training deep learning models. Its core lies in using a large-scale dataset to preliminarily train the model so that the model learns general feature representations. This process is similar to the basic learning stage of humans before learning new knowledge, where they accumulate experience through extensive reading and observation.
[0066] The pre-trained scheduling model can refer to designing a scheduling model training task based on a large-scale form library (including the rendering duration information of each to-be-rendered group in historical forms, the dependency relationships between to-be-rendered groups in historical forms, and the resource usage data of the resource modules used for rendering each to-be-rendered group in historical forms), training a large-scale neural network algorithm structure to learn and implement. The finally obtained large-scale neural network algorithm structure and parameters are the pre-trained scheduling model. For subsequent other tasks, feature extraction or task fine-tuning can be performed based on this model to achieve specific task purposes. The idea of pre-training is to first train a task to obtain a set of model parameters, then use this set of model parameters to initialize the network model parameters, and then use the initialized network model to train other tasks to obtain models adapted to other tasks. During the training process, fine-tuning can also be directly performed on the pre-trained model, so that the obtained trained scheduling model is more accurate.
[0067] The "fine-tuning" involved in the above content refers to further training on the dataset of a specific task based on the use of a pre-trained model to adjust the model parameters so that it can better adapt to the target task. During the fine-tuning process, most layers of the pre-trained model are usually frozen, and only the newly added layers or a small number of key layers are trained. This can not only retain the features learned by the pre-trained model but also quickly adapt to the specific requirements of the new task. In addition, choosing appropriate learning rates and the number of training epochs is also the key to the success of fine-tuning.
[0068] In this embodiment, the pre-trained scheduling model can be a multi-objective optimization model. By inputting the current resource usage data of the CPU, the current resource usage data of the GPU, the current resource usage data of the cloud server, the rendering duration information of each to-be-rendered group, and the dependency relationships between to-be-rendered groups into the multi-objective optimization model, the target resource modules for rendering each to-be-rendered group are output by the multi-objective optimization model.
[0069] In the above embodiment of this application, the current resource usage data of the first processor, the second processor, and the cloud server are obtained, and the current resource usage data of the first processor, the second processor, and the cloud server, the rendering duration information of each to-be-rendered group, and the dependency relationships between to-be-rendered groups are input into the pre-trained scheduling model. The target resource modules corresponding to rendering each to-be-rendered group are output by this scheduling model. The method of this embodiment uses the pre-trained scheduling model to output the target resource modules corresponding to rendering each to-be-rendered group, which can determine which resource module is used to render the to-be-rendered group, realize the scheduling of resource modules, thereby improving the utilization of heterogeneous resources and the rendering efficiency of forms.
[0070] Further, based on the above embodiments, if the attribute information includes the pixel values or the rendering data amounts of each rendering group to be rendered, the following embodiments will illustrate the process of determining the target resource module for rendering each rendering group to be rendered according to the attribute information of multiple rendering groups to be rendered.
[0071] Please refer to Figure 5 , Figure 5 which is a schematic flowchart of another method for determining the target resource module for rendering each rendering group to be rendered provided by an embodiment of the present application. The method may include the following steps:
[0072] S501. Determine the task type to which each rendering group to be rendered belongs according to the pixel values or the rendering data amounts of each rendering group to be rendered.
[0073] Among them, the task types include: a first task type for characterizing a simple task, a second task type for characterizing a first complex task, and a third task type for characterizing a second complex task. The complexity of the first complex task is less than the complexity of the second complex task.
[0074] A possible implementation manner is:
[0075] For any rendering group to be rendered, if the pixel value of the rendering group to be rendered is less than a first preset pixel value threshold, or the rendering data amount of the rendering group to be rendered is less than a first preset rendering data amount threshold, then determine that the task type of the rendering group to be rendered is the first task type.
[0076] For example, if the pixel value of the rendering group to be rendered is less than the first preset pixel value threshold, it indicates that the color of the display image corresponding to the rendering group to be rendered may be relatively single. If the rendering data amount of the rendering group to be rendered is less than the first preset rendering data amount threshold, it indicates that the content of the display image corresponding to the rendering group to be rendered may be relatively simple. Therefore, the type of the task that meets the above conditions can be determined as the first task type.
[0077] For any rendering group to be rendered, if the pixel value of the rendering group to be rendered is greater than or equal to the first preset pixel value threshold and less than a second preset pixel value threshold, or the rendering data amount of the rendering group to be rendered is greater than or equal to the first preset rendering data amount threshold and less than a second preset rendering data amount threshold, then determine that the task type of the rendering group to be rendered is the second task type.
[0078] For example, if the pixel value of the rendering group to be rendered is greater than or equal to the first preset pixel value threshold and less than the second preset pixel value threshold, it indicates that the color of the display image corresponding to the rendering group to be rendered may have several colors and is relatively bright. If the rendering data amount of the rendering group to be rendered is greater than or equal to the first preset rendering data amount threshold and less than the second preset rendering data amount threshold, it indicates that the content of the display image corresponding to the rendering group to be rendered may be relatively complex. Therefore, the type of the task that meets the above conditions can be determined as the second task type.
[0079] For any rendering group to be rendered, if the pixel value of the rendering group to be rendered is greater than or equal to the second preset pixel value threshold, or the rendering data volume of the rendering group to be rendered is greater than or equal to the second preset rendering data volume threshold, then determine that the task type of the rendering group to be rendered is the third task type.
[0080] For example, if the pixel value of the rendering group to be rendered is greater than or equal to the second preset pixel value threshold, it indicates that the color of the display image corresponding to the rendering group to be rendered is very rich and the color is very bright and vivid. If the rendering data volume of the rendering group to be rendered is greater than or equal to the second preset rendering data volume threshold, it indicates that the content of the display image corresponding to the rendering group to be rendered is very complex. Therefore, the type of the task that meets the above conditions can be determined as the third task type.
[0081] Among them, the first preset pixel value threshold is less than the second preset pixel value threshold, and the first preset rendering data volume threshold is less than the second preset rendering data volume threshold.
[0082] S502. Determine the target resource module for rendering each rendering group according to the task type to which each rendering group belongs.
[0083] A possible implementation method is:
[0084] For the rendering group belonging to the first task type, determine that the target resource module for rendering the rendering group is the first processor, that is, the CPU.
[0085] For the rendering group belonging to the second task type, determine that the target resource module for rendering the rendering group is the second processor, that is, the GPU.
[0086] For the rendering group belonging to the third task type, determine that the target resource module for rendering the rendering group is the cloud server.
[0087] Exemplarily, the rendering of some relatively simple static images can be executed by the CPU, the rendering of some relatively complex dynamic images or stereoscopic images can be executed by the GPU, and the rendering of some stereoscopic dynamic images with very bright colors and very high complexity can be executed by the cloud server.
[0088] It can be understood that the above examples are only for illustration and do not limit the present application.
[0089] In the above embodiments of the present application, the method of this embodiment can determine the task type to which each rendering group belongs according to the pixel value or rendering data volume of each rendering group, and finally determine which resource module will render the rendering group according to the task type, so as to realize the scheduling of the resource module, improve the utilization of heterogeneous resources, and further improve the rendering efficiency of the form.
[0090] After determining the target resource module for rendering each group to be rendered through any of the above embodiments, render the group to be rendered corresponding to the target resource module through the target resource module.
[0091] Please refer to Figure 6 , Figure 6 FIG. is a schematic flowchart of a method for rendering a corresponding group to be rendered through a target resource module provided by an embodiment of the present application. The method may include the following steps:
[0092] S601. Through the target resource module, obtain the rendering information of each group to be rendered corresponding to the target resource module from a preset database.
[0093] The rendering information of each group to be rendered has been pre-stored in the preset database. Therefore, the target resource module can obtain the rendering information of the group to be rendered corresponding to it from the preset database. For example, the target resource module can obtain the rendering information corresponding to the identification information according to the identification information of the group to be rendered that it is to render.
[0094] S602. Through the target resource module, determine the rendering order of the target resource module for each group to be rendered according to the rendering information of each group to be rendered.
[0095] A possible implementation is:
[0096] According to the rendering information of each group to be rendered, determine the appearance order of each group to be rendered in the form to be rendered, and determine the appearance order of each group to be rendered in the form to be rendered as the rendering order of the target resource module for each group to be rendered.
[0097] Exemplarily, according to the rendering information of each group to be rendered, parameter information that can characterize the sorting characteristics of the group to be rendered is determined therefrom, such as "order" or "priority", and the appearance order of each group to be rendered in the form to be rendered is determined according to the parameter information, and the appearance order is determined as the rendering order of the target resource module for each group to be rendered.
[0098] Another possible implementation is:
[0099] According to the rendering information of each group to be rendered, based on a preset rendering algorithm, determine the rendering priority of each group to be rendered, and determine the rendering order of the target resource module for each group to be rendered according to the rendering priority of each group to be rendered.
[0100] Optionally, the preset rendering algorithms include, but are not limited to, the Shortest Job First (SJF) algorithm, the Earliest Deadline First (EDF) algorithm, the Highest Response Ratio Next (HRRN) algorithm, etc.
[0101] Based on the rendering information of each rendering group to be rendered, the rendering group with the shortest execution time can be preferentially determined from multiple rendering groups to be rendered according to the Shortest Job First algorithm. Thus, the rendering priorities of each rendering group to be rendered can be determined according to the order of the execution time from short to long.
[0102] Based on the rendering information of each rendering group to be rendered, the rendering group with the earliest deadline can be preferentially determined from multiple rendering groups to be rendered according to the Earliest Deadline First algorithm. Thus, the rendering priorities of each rendering group to be rendered can be determined according to the order of the deadline from early to late.
[0103] Based on the rendering information of each rendering group to be rendered, the waiting time and execution time of each rendering group to be rendered can be determined according to the Highest Response Ratio Next algorithm. The response ratio can be determined according to the waiting time and execution time. The rendering group with the highest response ratio can be preferentially determined from multiple rendering groups to be rendered according to the Highest Response Ratio Next algorithm. Thus, the rendering priorities of each rendering group to be rendered can be determined according to the order of the response ratio from high to low.
[0104] After determining the rendering priorities of each rendering group to be rendered, determine the rendering order of the target resource module for each rendering group according to the rendering priorities of each rendering group to be rendered.
[0105] S603. Through the target resource module, render each rendering group to be rendered according to the rendering order.
[0106] Through the CPU, render the corresponding rendering group to be rendered according to the rendering order of each rendering group to be rendered by the CPU.
[0107] Correspondingly, through the GPU, render the corresponding rendering group to be rendered according to the rendering order of each rendering group to be rendered by the GPU. Through the cloud server, render the corresponding rendering group to be rendered according to the rendering order of each rendering group to be rendered by the cloud server.
[0108] In the above embodiments of the present application, through the target resource module, the rendering information of each rendering group corresponding to the target resource module is obtained from the preset database, and according to the rendering information of each rendering group, the rendering order of the target resource module for each rendering group is determined. Furthermore, the target resource module renders each rendering group according to the rendering order. Compared with the related art where only a single resource module is relied on to render each field in the order of the fields in the form to be rendered, resulting in a slower rendering speed, the method of this embodiment enables the target resource module to perform rendering according to the determined rendering order of each rendering group, thereby effectively improving the rendering speed of the form to be rendered and reducing the waiting and browsing time of the user.
[0109] In the present application, the rendering order of the target resource module for each rendering group can also be determined according to the user's behavior information, and then through the target resource module, each rendering group is rendered according to the rendering order.
[0110] Specifically, the user's behavior information is obtained, and according to the behavior information, the target rendering group to be preferentially rendered is determined. Then, according to the target rendering group to be preferentially rendered, the rendering order of the target resource module for each rendering group is determined, and the target resource module performs rendering according to this rendering order.
[0111] Optionally, the behavior information of the user within a preset duration is obtained. If the behavior information indicates that the user frequently accesses a certain content in a certain Web application within the preset duration, it is predicted that the user may continue to access this content in the future. Therefore, the corresponding rendering group can be determined according to this content, and this rendering group is determined as the first priority, and the remaining rendering groups are determined as the second priority. The rendering groups are sorted according to the first priority and the second priority, so that the rendering order of the target resource module for each rendering group can be determined.
[0112] Optionally, the behavior information of the user at the current moment is obtained. If the behavior information indicates that the user is currently accessing a certain content in a certain Web application, it is predicted that the user may access the content adjacent to this content in the future. Among them, the content that the user is currently accessing and the content adjacent to the content that the user is currently accessing can be understood as the content in the current visible area. Therefore, multiple corresponding rendering groups can be determined according to the content that the user is currently accessing and the content adjacent to the content that the user may access in the future, and these multiple rendering groups are determined as the first priority, and the remaining rendering groups are determined as the second priority. The rendering groups are sorted according to the first priority and the second priority, so that the rendering order of the target resource module for each rendering group can be determined.
[0113] Optionally, obtain the user's behavior information within a preset duration. If the behavior information indicates that the user has spent a relatively long time accessing a certain content in a certain Web application, predict that the user may continue to access other content related to this content in the future. Therefore, based on other content related to what the user may access in the future, determine at least one rendering group to be rendered accordingly, determine the determined rendering group as the first priority, determine the remaining rendering groups as the second priority, and sort the rendering groups according to the first priority and the second priority, so as to determine the rendering order of each rendering group by the target resource module.
[0114] In this application, it is also possible to obtain the access data of the user to the Web application in different historical periods. The access data includes, but is not limited to: the rendering groups accessed, the target resource modules corresponding to the accessed rendering groups, etc. Then, train using a machine learning algorithm based on the access data in different periods to obtain a trained machine learning model. Furthermore, through the trained machine learning model, according to the user's current time, output the corresponding access data of the Web application, and then determine the rendering group to be preferentially rendered based on the access data.
[0115] In the above embodiments of this application, obtain the user's behavior information, and based on the behavior information, determine the target rendering group to be preferentially rendered. Then, based on the target rendering group to be preferentially rendered, determine the rendering order of each rendering group by the target resource module, so that the target resource module renders each rendering group according to this rendering order. The method of this embodiment enables the rendering of the form to be combined with the user's behavior, making the rendering of the form more in line with the user's usage requirements, thereby improving the user's usage experience.
[0116] Further, on the basis of the above embodiments, the following embodiments illustrate the process of rendering each rendering group by the target resource module according to the rendering order.
[0117] Please refer to Figure 7 , Figure 7 which is a schematic flowchart of a method for rendering each rendering group according to the rendering order provided by an embodiment of this application. The method may include the following steps:
[0118] S701. According to the rendering order, pre-load the data of the rendering group corresponding to the rendering order into the cache.
[0119] In this embodiment, based on a preset loading algorithm, according to the rendering order, pre-load the data of the rendering group corresponding to the rendering order from a preset database into the cache in sequence to achieve intelligent caching.
[0120] When preloading the data of the to-be-rendered groups, according to the user's behavior, if the user is quickly scrolling the form, the preloading range can be larger according to the rendering order, and the data of the corresponding first preset number of to-be-rendered groups can be preloaded into the cache in advance. If the user is slowly scrolling the form, the preloading range can be smaller according to the rendering order, and the data of the corresponding second preset number of to-be-rendered groups can be preloaded into the cache in advance. Among them, the first preset number is greater than the second preset number. When the user scrolls the form, throttling and debouncing technologies can be used to reduce unnecessary calculations, making the judgment on whether the user is quickly or slowly scrolling the form more accurate.
[0121] In this embodiment, the loading algorithm can also be improved. For example, a multi-dimensional evaluation method can be adopted to evaluate according to the loading accuracy rate, recall rate, or preset parameter value F1, etc., and the parameters in the loading algorithm can be improved according to the evaluation results, so as to improve the accuracy, adaptability, and robustness of the loading algorithm.
[0122] S702. Through the target resource module, obtain the data of the to-be-rendered groups corresponding to the rendering order from the cache.
[0123] The CPU obtains the data of the to-be-rendered groups corresponding to the rendering order from the cache, the GPU obtains the data of the to-be-rendered groups corresponding to the rendering order from the cache, and the cloud server obtains the data of the to-be-rendered groups corresponding to the rendering order from the cache.
[0124] S703. Through the target resource module, render each to-be-rendered group in sequence according to the data of the to-be-rendered groups corresponding to the rendering order.
[0125] The CPU renders each to-be-rendered group in sequence according to the data of the to-be-rendered groups corresponding to the rendering order.
[0126] Correspondingly, the GPU renders each to-be-rendered group in sequence according to the data of the to-be-rendered groups corresponding to the rendering order, and the cloud server renders each to-be-rendered group in sequence according to the data of the to-be-rendered groups corresponding to the rendering order.
[0127] In the above embodiments of the present application, according to the rendering order, the data of the to-be-rendered groups corresponding to the rendering order are preloaded into the cache in advance. Through the target resource module, the data of the to-be-rendered groups corresponding to the rendering order are obtained from the cache. Through the target resource module, each to-be-rendered group is rendered in sequence according to the data of the to-be-rendered groups corresponding to the rendering order. The method of this embodiment reduces the traversal time used for the target resource module to directly obtain the data of the to-be-rendered groups from the preset database during rendering by loading the data of the to-be-rendered groups corresponding to the rendering order into the cache, thereby improving the rendering efficiency of the target resource module for rendering each to-be-rendered group and reducing the data access latency during the rendering process.
[0128] In this application, if at least one of multiple rendering groups to be rendered is updated, other rendering groups that have a dependency relationship with the at least one rendering group to be rendered are determined based on a preset search algorithm, and the at least one rendering group to be rendered and other rendering groups that have a dependency relationship with the at least one rendering group to be rendered are re-rendered through any target resource module.
[0129] Specifically, by listening to the user's input event, if the input event indicates that the user has updated the content corresponding to a certain field in the form, the rendering group that has been updated is determined according to the updated content, and the breadth-first search algorithm is used to determine other rendering groups that have a dependency relationship with the rendering group that has been updated. Then, one or more of the CPU, GPU, or cloud server are used to render the rendering group that has been updated and other rendering groups that have a dependency relationship with the rendering group that has been updated. Among them, the updated data used for rendering can be obtained from the cache.
[0130] For the specific rendering process, please refer to the above-mentioned embodiments. To avoid redundancy, it will not be repeated here.
[0131] In this application, when the form is updated, compared with the related technology, it is not necessary to re-render the entire form. It is only necessary to re-render the corresponding rendering group in the updated form and the rendering groups that have a dependency relationship with this rendering group, so that the update efficiency can be improved when the form is updated, thereby enhancing the user experience.
[0132] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method.
[0133] Figure 8 FIG. 17 is a schematic structural diagram of a rendering device for a form provided by an embodiment of the present application. The rendering device for the form includes:
[0134] An acquisition module 801, configured to acquire a form to be rendered.
[0135] A processing module 802, configured to divide the fields of the form to be rendered to obtain multiple rendering groups to be rendered, where a rendering group to be rendered includes one field or multiple fields.
[0136] The acquisition module 801 is further configured to acquire attribute information of multiple rendering groups to be rendered.
[0137] A determination module 803, configured to determine a target resource module for rendering each to-be-rendered group according to the attribute information of multiple to-be-rendered groups, where the target resource module is a first processor, a second processor, or a cloud server, and the image processing capability of the first processor is less than that of the second processor.
[0138] A rendering module 804, configured to render the to-be-rendered group corresponding to the target resource module through the target resource module to obtain a rendered form.
[0139] A possible implementation manner is that the attribute information includes the rendering duration information of each to-be-rendered group and the dependency relationship between to-be-rendered groups. The determination module 803 is specifically configured to:
[0140] Obtain the current resource usage data of the first processor, the second processor, and the cloud server.
[0141] Input the current resource usage data of the first processor, the second processor, and the cloud server, the rendering duration information of each to-be-rendered group, and the dependency relationship between to-be-rendered groups into a pre-trained scheduling model, and output the target resource module corresponding to each to-be-rendered group for rendering.
[0142] A possible implementation manner is that the processing module 802 is further configured to:
[0143] Obtain training data, where the training data includes the rendering duration information of each to-be-rendered group of a historical form, the dependency relationship between to-be-rendered groups in the historical form, and the resource usage data of the resource module used for rendering each to-be-rendered group in the historical form at that time.
[0144] Train an initial neural network model with the training data until a preset convergence condition is met to obtain a trained scheduling model.
[0145] A possible implementation manner is that the attribute information further includes: the pixel value or rendering data volume of each to-be-rendered group. The determination module 803 is specifically configured to:
[0146] Determine the task type to which each to-be-rendered group belongs according to the pixel value or rendering data volume of each to-be-rendered group. The task type includes a first task type for representing a simple task, a second task type for representing a first complex task, and a third task type for representing a second complex task. The complexity of the first complex task is less than that of the second complex task.
[0147] Determine the target resource module for rendering each to-be-rendered group according to the task type to which each to-be-rendered group belongs.
[0148] A possible implementation manner is that the determination module 803 is specifically configured to:
[0149] For any rendering group to be rendered, if the pixel value of the rendering group to be rendered is less than the first preset pixel value threshold, or the rendering data volume of the rendering group to be rendered is less than the first preset rendering data volume threshold, then determine that the task type to which the rendering group to be rendered belongs is the first task type.
[0150] For any rendering group to be rendered, if the pixel value of the rendering group to be rendered is greater than or equal to the first preset pixel value threshold and less than the second preset pixel value threshold, or the rendering data volume of the rendering group to be rendered is greater than or equal to the first preset rendering data volume threshold and less than the second preset rendering data volume threshold, then determine that the task type to which the rendering group to be rendered belongs is the second task type.
[0151] For any rendering group to be rendered, if the pixel value of the rendering group to be rendered is greater than or equal to the second preset pixel value threshold, or the rendering data volume of the rendering group to be rendered is greater than or equal to the second preset rendering data volume threshold, then determine that the task type to which the rendering group to be rendered belongs is the third task type.
[0152] Wherein, the first preset pixel value threshold is less than the second preset pixel value threshold, and the first preset rendering data volume threshold is less than the second preset rendering data volume threshold.
[0153] A possible implementation is that for the rendering group to be rendered belonging to the first task type, determine that the target resource module for rendering the rendering group to be rendered is the first processor.
[0154] For the rendering group to be rendered belonging to the second task type, determine that the target resource module for rendering the rendering group to be rendered is the second processor.
[0155] For the rendering group to be rendered belonging to the third task type, determine that the target resource module for rendering the rendering group to be rendered is the cloud server.
[0156] A possible implementation is that the rendering module 804 is specifically used for:
[0157] Through the target resource module, obtain the rendering information of each rendering group corresponding to the target resource module from the preset database.
[0158] Through the target resource module, according to the rendering information of each rendering group, determine the rendering order of the target resource module for each rendering group.
[0159] Through the target resource module, render each rendering group according to the rendering order.
[0160] A possible implementation is that the rendering module 804 is specifically used for:
[0161] According to the rendering information of each rendering group, determine the appearance order of each rendering group in the rendering form.
[0162] Determine the order in which each rendering group appears in the form to be rendered as the rendering order of each rendering group by the target resource module.
[0163] A possible implementation is that the rendering module 804 is specifically used for:
[0164] Based on the rendering information of each rendering group, determine the rendering priority of each rendering group according to a preset rendering algorithm.
[0165] According to the rendering priority of each rendering group, determine the rendering order of each rendering group by the target resource module.
[0166] A possible implementation is that the rendering module 804 is specifically used for:
[0167] Obtain the behavior information of the user.
[0168] According to the behavior information, determine the target rendering group to be preferentially rendered.
[0169] According to the target rendering group to be preferentially rendered, determine the rendering order of each rendering group by the target resource module.
[0170] Through the target resource module, render each rendering group according to the rendering order.
[0171] A possible implementation is that the rendering module 804 is specifically used for:
[0172] According to the rendering order, pre-load the data of the rendering groups corresponding to the rendering order into the cache in advance.
[0173] Through the target resource module, obtain the data of the rendering groups corresponding to the rendering order from the cache.
[0174] Through the target resource module, according to the data of the rendering groups corresponding to the rendering order, render each rendering group in sequence.
[0175] A possible implementation is that the processing module 802 is also used for:
[0176] If at least one of the multiple rendering groups is updated, determine other rendering groups that have a dependency relationship with the at least one rendering group based on a preset search algorithm.
[0177] Through any target resource module, re-render the at least one rendering group and other rendering groups that have a dependency relationship with the at least one rendering group.
[0178] For the description of the features in the embodiments corresponding to the rendering device of the form, reference can be made to the relevant descriptions in the embodiments corresponding to the rendering method of the form, which will not be elaborated here one by one.
[0179] Figure 9 This is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As Figure 9 shown, the electronic device provided in this embodiment includes: at least one controller 901 and a memory 902. Optionally, the electronic device further includes a communication component 903. Among them, the controller 901, the memory 902, and the communication component 903 are connected through a bus 904.
[0180] In a specific implementation process, at least one controller 901 executes computer-executable instructions stored in the memory 902, so that at least one controller 901 executes the form rendering method embodiment described above.
[0181] For the specific implementation process of the controller 901, reference may be made to the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here in this embodiment.
[0182] In the above embodiment, it should be understood that the controller may be a central processing unit (Central Processing Unit, abbreviated as: CPU), or it may also be other general-purpose controllers, digital signal controllers (Digital Signal Processor, abbreviated as: DSP), application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as: ASIC), etc. The general-purpose controller may be a microcontroller or the controller may also be any conventional controller, etc. The steps of the method disclosed in combination with the application may be directly embodied as being completed by a hardware controller, or completed by a combination of hardware and software modules in the controller.
[0183] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0184] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0185] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. Wherein, the computer program is configured to execute the steps in the embodiment of any one of the above form rendering methods when running.
[0186] In an exemplary embodiment, the above computer-readable storage medium may include but is not limited to: various media such as USB flash drives, read-only memories (ROM for short), random access memories (RAM for short), mobile hard disks, magnetic disks, or optical discs that can store computer programs.
[0187] An embodiment of the present application further provides a computer program product. The above computer program product includes a computer program, and when the computer program is executed by a controller, it implements the steps in the embodiment of any one of the above form rendering methods.
[0188] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium. The non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a controller, it implements the steps in the embodiment of any one of the above form rendering methods.
[0189] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0190] The above has introduced in detail a form rendering method, an electronic device, a storage medium, and a program product provided by the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
Claims
1. A rendering method for a form, characterized in that, Including: Obtain the form to be rendered; Perform field division on the form to be rendered to obtain multiple groups to be rendered, where each group to be rendered includes one or more fields; Obtain the attribute information of multiple groups to be rendered; Determine the target resource module for rendering each group to be rendered according to the attribute information of multiple groups to be rendered. The target resource module is a first processor, a second processor, or a cloud server, and the image processing ability of the first processor is less than that of the second processor; According to the rendering order of each group to be rendered corresponding to the target resource module and the first speed of form scrolling, pre-load the data of the first preset number of groups to be rendered corresponding to the rendering order into the cache; Or, According to the rendering order of each group to be rendered corresponding to the target resource module and the second speed of form scrolling, pre-load the data of the second preset number of groups to be rendered corresponding to the rendering order into the cache; where the first speed is greater than the second speed, and the first preset number is greater than the second preset number; Through the target resource module, obtain the data of the group to be rendered corresponding to the rendering order from the cache; Through the target resource module, render each group to be rendered in sequence according to the data of the group to be rendered corresponding to the rendering order to obtain the rendered form; the rendering order of each group to be rendered is related to the rendering time, response ratio, or user behavior information of each group to be rendered; the response ratio is determined based on the waiting time and rendering time of the group to be rendered; the behavior information is used to determine the target group to be rendered with priority.
2. The method according to claim 1, characterized in that, The attribute information includes the rendering duration information of each group to be rendered and the dependency relationship between groups to be rendered; The determining the target resource module for rendering each group to be rendered according to the attribute information of multiple groups to be rendered includes: Obtain the current resource usage data of the first processor, the second processor, and the cloud server; Input the current resource usage data of the first processor, the second processor, and the cloud server, the rendering duration information of each group to be rendered, and the dependency relationship between groups to be rendered into a pre-trained scheduling model, and output the target resource module corresponding to rendering each group to be rendered.
3. The method according to claim 2, characterized in that, The training process of the pre-trained scheduling model includes: Obtain training data, where the training data includes the rendering duration information of each group to be rendered in the historical form, the dependency relationship between groups to be rendered in the historical form, and the resource usage data of the resource module used for rendering each group to be rendered in the historical form at that time; Train the initial neural network model using the training data until the preset convergence condition is met to obtain the trained scheduling model.
4. The method according to claim 1, characterized in that, The attribute information further includes: the pixel value or rendering data volume of each group to be rendered; The determining the target resource module for rendering each group to be rendered according to the attribute information of multiple groups to be rendered includes: Determine the task type to which each rendering group to be rendered belongs according to the pixel values or the amount of rendering data of each rendering group to be rendered. The task types include a first task type for characterizing simple tasks, a second task type for characterizing first complex tasks, and a third task type for characterizing second complex tasks; the complexity of the first complex task is less than the complexity of the second complex task; Determine the target resource module for rendering each rendering group to be rendered according to the task type to which each rendering group to be rendered belongs.
5. The method according to claim 4, characterized in that, The determining the task type to which each rendering group to be rendered belongs according to the pixel values or the amount of rendering data of each rendering group to be rendered includes: For any rendering group to be rendered, if the pixel value of the rendering group to be rendered is less than a first preset pixel value threshold, or the amount of rendering data of the rendering group to be rendered is less than a first preset rendering data amount threshold, then determine that the task type to which the rendering group to be rendered belongs is the first task type; For any rendering group to be rendered, if the pixel value of the rendering group to be rendered is greater than or equal to the first preset pixel value threshold and less than a second preset pixel value threshold, or the amount of rendering data of the rendering group to be rendered is greater than or equal to the first preset rendering data amount threshold and less than a second preset rendering data amount threshold, then determine that the task type to which the rendering group to be rendered belongs is the second task type; For any rendering group to be rendered, if the pixel value of the rendering group to be rendered is greater than or equal to the second preset pixel value threshold, or the amount of rendering data of the rendering group to be rendered is greater than or equal to the second preset rendering data amount threshold, then determine that the task type to which the rendering group to be rendered belongs is the third task type; Wherein, the first preset pixel value threshold is less than the second preset pixel value threshold, and the first preset rendering data amount threshold is less than the second preset rendering data amount threshold.
6. The method according to claim 4, characterized in that, The determining the target resource module for rendering each rendering group to be rendered according to the task type to which each rendering group to be rendered belongs includes: For a rendering group to be rendered belonging to the first task type, determine that the target resource module for rendering the rendering group to be rendered is the first processor; For a rendering group to be rendered belonging to the second task type, determine that the target resource module for rendering the rendering group to be rendered is the second processor; For a rendering group to be rendered belonging to the third task type, determine that the target resource module for rendering the rendering group to be rendered is the cloud server.
7. The method according to claim 1, characterized in that, The rendering the rendering group to be rendered corresponding to the target resource module through the target resource module includes: Through the target resource module, obtain the rendering information of each rendering group to be rendered corresponding to the target resource module from a preset database; Through the target resource module, determine the rendering time or response ratio of each rendering group to be rendered according to the rendering information of each rendering group to be rendered; Determine the rendering order of the target resource module for each rendering group to be rendered according to the rendering time or response ratio of each rendering group to be rendered; Through the target resource module, render each rendering group to be rendered according to the rendering order.
8. The method according to claim 7, wherein The determining the rendering order of the target resource module for each rendering group to be rendered according to the rendering time or response ratio of each rendering group to be rendered includes: Based on the rendering information of each rendering group to be rendered, determine the rendering priority of each rendering group to be rendered based on a preset first rendering algorithm or second rendering algorithm; the first rendering algorithm is related to the rendering time of the rendering group to be rendered, and the second rendering algorithm is related to the response ratio of the rendering group to be rendered; Based on the rendering priorities of the respective rendering groups to be rendered, determine the rendering order of the respective rendering groups to be rendered by the target resource module.
9. The method according to claim 1, wherein The rendering of the rendering group to be rendered corresponding to the target resource module by the target resource module includes: Obtain the behavior information of the user; Based on the behavior information, determine the target rendering group to be preferentially rendered; Based on the target rendering group to be preferentially rendered, determine the rendering order of the respective rendering groups to be rendered by the target resource module; Through the target resource module, render each rendering group to be rendered according to the rendering order.
10. The method according to claim 1, characterized in that, It further includes: If at least one of the multiple rendering groups to be rendered is updated, determine other rendering groups that have a dependency relationship with the at least one rendering group based on a preset search algorithm; Through any one of the target resource modules, re-render the at least one rendering group and other rendering groups that have a dependency relationship with the at least one rendering group.
11. An electronic device, characterized in that, It includes: A memory for storing a computer program; A controller for implementing the steps of the rendering method of the form according to any one of claims 1 to 10 when executing the computer program.
12. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of the rendering method of the form according to any one of claims 1 to 10 when executed by the controller.
13. A computer program product, comprising a computer program, characterized in that, The computer program implements the steps of the rendering method of the form according to any one of claims 1 to 10 when executed by the controller.
Citation Information
Patent Citations
Business system creation method and device, computer equipment and storage medium
CN117033829A
Rendering method and system based on digital twin display
CN119295625A