Method and system for improving loading rate
By real-time monitoring and merging the view level of low-performance client APPs, the load delay problem is solved and the load rate and access efficiency is improved.
Patent Information
- Application Number
- CN202510341969.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-21
- Publication Date
- 2025-08-01
AI Technical Summary
In the prior art, client APP applications have load delay problems on low-performance models, which affect access efficiency.
By monitoring the page loading delay time in real time, automatically merge the view levels whose loading delay time exceeds the threshold, and update the page using silent or web-side smooth upgrade method to reduce the number of view levels to improve the loading rate.
Improve page loading rate and access efficiency, optimize resource utilization, and avoid resource waste caused by meaningless mergers.
Smart Images

Figure CN120407036A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and system for improving the loading rate. Background Art
[0002] In order to meet various needs of users, a variety of native client APP applications have been developed currently. However, in the actual process, due to the rich variety of client models, in order for the APP application to be adapted to different models, it is usually optimized and improved from the aspect of image adaptation to different models, and adapted according to the width-to-height ratios of different models, so as to improve the loading rate. However, for low-performance models, due to limited device resources, even if the images are adapted according to the width-to-height ratios of the models, there will still be problems of loading delay, which affects the access efficiency. Summary of the Invention
[0003] The technical problem to be solved by the present invention is: The present invention provides a method and system for improving the loading rate, which can improve the loading rate and access efficiency.
[0004] In order to solve the above technical problem, the technical solution adopted by the present invention is:
[0005] In a first aspect, the present invention provides a method for improving the loading rate, including:
[0006] Real-time monitor the loading delay time of each first page of the APP, and determine whether the loading delay time exceeds a first threshold. If so, automatically obtain all view hierarchies of the first page corresponding to the loading delay time exceeding the first threshold, and merge all the view hierarchies to obtain a merged view hierarchy;
[0007] Update the first page according to the merged view hierarchy to obtain a second page. When receiving an access request for the first page, jump to the second page according to the access request.
[0008] The beneficial effect of the present invention is that: By using the method of real-time monitoring and automatic merging to merge the view hierarchies of the first page whose loading delay time exceeds the first threshold, the content of multiple view hierarchies is merged together to achieve the effect of reducing the view hierarchy. When the user accesses the first page again, it jumps to the second page obtained according to the merged view hierarchy, thereby improving the loading rate of the page and the access efficiency.
[0009] Optionally, the real-time monitoring of the loading delay time of each page of the APP includes:
[0010] Obtain all first pages of the APP, classify all the first pages according to a first rule to obtain the first pages after type classification;
[0011] Classify the first page after classifying by the second rule to obtain the first page after level classification;
[0012] Filter out the pages to be monitored from the pages after level classification according to the third rule, and monitor the loading delay time of the pages to be monitored in real time.
[0013] According to the above description, not every first page of the APP is monitored. Instead, the pages to be monitored are screened out through a dual screening mechanism of type classification and level classification of the first-level pages for real-time monitoring, improving the monitoring efficiency and at the same time improving the resource utilization rate.
[0014] Optionally, the merging of all the view hierarchies to obtain the merged view hierarchy includes:
[0015] Summarize all the view hierarchies to obtain the total number of levels;
[0016] Determine whether the total number of levels exceeds the second threshold. If so, merge all the view hierarchies to obtain the merged view hierarchy.
[0017] According to the above description, the view hierarchies are merged based on the total number of levels of the view hierarchies, avoiding resource waste caused by meaningless merging and improving the merging efficiency.
[0018] Optionally, the updating of the first page according to the merged view hierarchy includes:
[0019] Update the first page in a silent upgrade manner according to the merged view hierarchy.
[0020] Optionally, the updating of the first page according to the merged view hierarchy includes:
[0021] Update the first page in a smooth upgrade manner on the web side according to the merged view hierarchy.
[0022] According to the above description, diverse updating methods are provided to ensure the flexibility of updating.
[0023] In a second aspect, the present invention provides a system for improving the loading rate, including:
[0024] A merging module, which is used to monitor in real time the loading delay time of each page of the APP, determine whether the loading delay time exceeds a first threshold, and if so, automatically obtain all the view hierarchies of the first page corresponding to the loading delay time exceeding the first threshold, and merge all the view hierarchies to obtain a merged view hierarchy;
[0025] An updating module, which is used to update the first page according to the merged view hierarchy to obtain a second page, and when receiving an access request for the first page, jump to the second page according to the access request.
[0026] The beneficial effect of the present invention is that: by adopting a method of real-time monitoring and automatic merging, the view hierarchies of the first page with a loading delay time exceeding the first threshold are merged, and the contents of multiple view hierarchies are combined together to achieve the effect of reducing the view hierarchy. When the user accesses the first page again, it jumps to the second page obtained according to the merged view hierarchy, thereby improving the page loading rate and access efficiency.
[0027] Optionally, the merging module includes:
[0028] A classification module, which is used to obtain all the first pages of the APP, classify all the first pages according to a first rule to obtain the first pages after type classification; divide the first pages after type classification according to a second rule to obtain the first pages after level division; screen out the pages to be monitored from the pages after level division according to a third rule, and monitor in real time the loading delay time of the pages to be monitored.
[0029] According to the above description, not every first page of the APP is monitored, but the pages to be monitored are screened out through a dual screening mechanism of type classification and level division of the first-level pages for real-time monitoring, which improves the monitoring efficiency and resource utilization rate at the same time.
[0030] Optionally, the merging module includes:
[0031] A judgment module, which is used to summarize all the view hierarchies to obtain the total number of hierarchies; judge whether the total number of hierarchies exceeds a second threshold, and if so, merge all the view hierarchies to obtain a merged view hierarchy.
[0032] According to the above description, the view hierarchies are merged based on the total number of hierarchies of the view hierarchies, avoiding resource waste caused by meaningless merging and improving the merging efficiency.
[0033] Optionally, the updating module is specifically:
[0034] The first page is updated using a silent upgrade method based on the merged view hierarchy.
[0035] Optionally, the update module is specifically:
[0036] The first page is updated using a smooth web upgrade method based on the merged view hierarchy.
[0037] As can be seen from the above description, a variety of update methods are provided to ensure the flexibility of updates. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A flow chart of a method for increasing loading rate provided in this embodiment;
[0039] Figure 2 A schematic diagram of the overall process of a method for increasing loading rate provided in this embodiment;
[0040] Figure 3 This is a structural diagram of a system for improving loading rate provided in this embodiment.
[0041] [Description of Reference Numerals]
[0042] 1. A system for increasing loading rate;
[0043] 2. Merging module; 21. Classification module; 22. Judgment module;
[0044] 3. Update module. DETAILED DESCRIPTION
[0045] To better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. Instead, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0046] Example 1
[0047] Please refer to Figures 1 to 2 The present invention provides a method for increasing the loading rate, comprising the steps of:
[0048] S1. Monitor the loading delay time of each first page of the APP in real time, determine whether the loading delay time exceeds a first threshold, and if so, automatically obtain all view levels of the first page corresponding to the loading delay time exceeding the first threshold, merge all the view levels, and obtain a merged view level;
[0049] In this embodiment, as Figure 1 shown, by adding an additional independent monitoring thread to the APP on the client side, the loading delay time of each first page of the APP is monitored in real time to determine whether the loading delay time exceeds a first threshold. At this time, the first threshold is 100 milliseconds, that is, if it is monitored that the loading delay time of the first page exceeds 100 milliseconds, all view hierarchies of the first page with a loading delay time exceeding 100 milliseconds will be automatically obtained, and all view hierarchies will be merged to obtain the merged view hierarchy.
[0050] At this time, the real-time monitoring of the loading delay time of each page of the APP in step S1 includes:
[0051] S11. Obtain all the first pages of the APP, classify all the first pages according to a first rule to obtain the first pages after type classification;
[0052] S12. Divide the first pages after type classification into levels according to a second rule to obtain the first pages after level division;
[0053] S13. Screen out the pages to be monitored from the pages after level division according to a third rule, and monitor the loading delay time of the pages to be monitored in real time.
[0054] In this embodiment, as Figure 2 shown, a type classification rule, that is, the first rule, is formulated in advance. All the first pages are classified according to the first rule, such as: dating type, office type, entertainment type, etc., to obtain the first pages after type classification. Then, according to the pre-formulated level division rule, that is, the second rule, the first pages after type classification are divided into levels, such as: importance level, access rate level, access interval level, etc., to obtain the first pages after level division. Finally, according to the pre-formulated screening rule, that is, the third rule, the pages to be monitored are screened out from the pages after level division, such as: screening out the first pages with an importance level of first level as the pages to be monitored, screening out the first pages with an access rate level of first level as the pages to be monitored, so as to monitor the loading delay time of the pages to be monitored in real time. Specifically, the first rule, the second rule, and the third rule can be adjusted and set according to the actual situation.
[0055] At this time, the merging of all the view hierarchies in step S1 to obtain the merged view hierarchy includes:
[0056] S14. Summarize all the view hierarchies to obtain the total number of levels;
[0057] S15. Determine whether the total number of levels exceeds a second threshold. If so, merge all the view levels to obtain the merged view levels.
[0058] In this embodiment, as Figure 2 shown, by summarizing all the view levels, determine whether the total number of levels obtained exceeds the second threshold. At this time, the second threshold is 3, that is, merge those with a total number of levels exceeding 3 to obtain the merged view levels. Specifically, the second threshold can be adjusted according to the actual situation.
[0059] S2. Update the first page according to the merged view levels to obtain a second page. When receiving an access request for the first page, jump to the second page according to the access request.
[0060] At this time, the update of the first page according to the merged view levels in step S2 includes:
[0061] S21. Update the first page according to the merged view levels by using the silent upgrade method.
[0062] S22. Update the first page according to the merged view levels by using the web - side smooth upgrade method.
[0063] In this embodiment, as Figure 2 shown, update the first page in the form of an updated package by using the silent upgrade method and / or the web - side smooth upgrade method according to the merged view levels to obtain a second page. When receiving an access request for the first page, directly jump to the second page to improve the loading speed.
[0064] Embodiment 2
[0065] Please refer to Figure 3 , the present invention provides a system 1 for improving the loading speed, including: a merging module 2, a classification module 21, a judgment module 22, and an update module 3.
[0066] Among them, the merging module 2 is used to monitor in real - time the loading delay time of each page of the APP, determine whether the loading delay time exceeds a first threshold. If so, automatically obtain all the view levels of the first page corresponding to the loading delay time exceeding the first threshold, and merge all the view levels to obtain the merged view levels;
[0067] The update module 3 is used to update the first page according to the merged view levels to obtain a second page. When receiving an access request for the first page, jump to the second page according to the access request.
[0068] Specifically, the merging module 2 includes:
[0069] A classification module 21, configured to obtain all pages of the APP, classify the types of all the pages according to a first rule to obtain the pages after type classification; divide the pages after type classification into levels according to a second rule to obtain the pages after level division; and screen out the pages to be monitored from the pages after level division, and monitor the loading delay time of the pages to be monitored in real time.
[0070] A judgment module 22, configured to summarize all the view hierarchies to obtain the total number of hierarchies; judge whether the total number of hierarchies exceeds a second threshold, and if so, merge all the view hierarchies to obtain the merged view hierarchies.
[0071] Specifically, the updating module is specifically:
[0072] Update the first page in a silent upgrade manner according to the merged view hierarchies;
[0073] Update the first page in a smooth upgrade manner on the web side according to the merged view hierarchies.
[0074] Since the system / apparatus described in the above embodiments of the present invention is the system / apparatus adopted for implementing the method in the above embodiments of the present invention, based on the method described in the above embodiments of the present invention, those skilled in the art can understand the specific structure and variations of the system / apparatus, and thus will not be elaborated herein again. Any system / apparatus adopted for the method in the above embodiments of the present invention falls within the scope of protection of the present invention.
[0075] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system or a computer program product. Therefore, the present invention can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0076] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, and the combination of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions.
[0077] It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a claim listing several means, several of these means can be embodied by the same hardware item. The use of the words first, second, third, etc. is for convenience only and does not denote any order. These words can be construed as part of the name of the element.
[0078] In addition, it should be noted that in the description of this specification, the description of terms such as "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples", etc. means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, without conflict, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0079] Although the preferred embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications after learning the basic creative concept. Therefore, the claims should be construed to include the preferred embodiments as well as all changes and modifications falling within the scope of the present invention.
[0080] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention should also include these modifications and variations.
Claims
1. A method for improving the loading rate, characterized in that, Including: Real-time monitor the loading delay time of each first page of the APP, determine whether the loading delay time exceeds the first threshold. If so, automatically obtain all view hierarchies of the first page corresponding to the loading delay time exceeding the first threshold, and merge all the view hierarchies to obtain the merged view hierarchy; Update the first page according to the merged view hierarchy to obtain the second page. When receiving an access request for the first page, jump to the second page according to the access request.
2. The method for improving the loading rate according to claim 1, wherein, The real-time monitoring of the loading delay time of each first page of the APP includes: Obtain all first pages of the APP, classify all the first pages according to the first rule to obtain the first pages after type classification; Divide the first pages after type classification into levels according to the second rule to obtain the first pages after level division; Screen out the pages to be monitored from the pages after level division according to the third rule, and real-time monitor the loading delay time of the pages to be monitored.
3. The method for improving the loading rate according to claim 1, wherein The merging of all the view hierarchies to obtain the merged view hierarchy includes: Summarize all the view hierarchies to obtain the total number of hierarchies; Judge whether the total number of hierarchies exceeds the second threshold. If so, merge all the view hierarchies to obtain the merged view hierarchy.
4. A method for improving the loading rate according to claim 1, characterized in that, The updating of the first page according to the merged view hierarchy includes: Update the first page in a silent upgrade manner according to the merged view hierarchy.
5. The method for improving the loading rate according to claim 1, characterized in that, The updating of the first page according to the merged view hierarchy includes: Update the first page in a smooth upgrade manner on the web side according to the merged view hierarchy.
6. A system for improving the loading rate, characterized in that, Including: A merging module for real-time monitoring the loading delay time of each first page of the APP, determining whether the loading delay time exceeds the first threshold. If so, automatically obtaining all view hierarchies of the first page corresponding to the loading delay time exceeding the first threshold, and merging all the view hierarchies to obtain the merged view hierarchy; An updating module for updating the first page according to the merged view hierarchy to obtain the second page, and when receiving an access request for the first page, jumping to the second page according to the access request.
7. A system for improving the loading rate as described in claim 6, characterized in that, The merging module includes: A classification module for obtaining all first pages of the APP, classifying all the first pages according to the first rule to obtain the first pages after type classification; dividing the first pages after type classification into levels according to the second rule to obtain the first pages after level division; screening out the pages to be monitored from the pages after level division according to the third rule, and real-time monitoring the loading delay time of the pages to be monitored.
8. A system for improving the loading rate as described in claim 6, characterized in that, The merging module includes: A judging module for summarizing all the view hierarchies to obtain the total number of hierarchies; judging whether the total number of hierarchies exceeds the second threshold. If so, merging all the view hierarchies to obtain the merged view hierarchy.
9. A system for improving the loading rate according to claim 6, wherein The updating module is specifically: Update the first page in a silent upgrade manner according to the merged view hierarchy.
10. A system for improving the loading rate according to claim 6, characterized in that, The update module is specifically as follows: Update the first page in a smooth upgrade manner on the web side according to the merged view hierarchy.
Citation Information
Patent Citations
Method and device for optimizing present panel in Android application program
CN107291479A
View hierarchical optimization method and device
CN107621951A
Target control determination method and device, electronic equipment and storage medium
CN110806873A
Page optimization processing method and equipment
CN114912047A
View rendering problem troubleshooting method, system and equipment and storage medium
CN116991749A