Application cold start acceleration method and apparatus
A cold start and hot start technology, applied in the field of electronics, can solve problems such as slow start-up speed, and achieve the effect of improving start-up speed and good user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] Please refer to figure 1 , figure 1 The flow chart of the method for applying cold start acceleration provided by the embodiment of the present invention, such as figure 1 As shown, the method includes:
[0041] 101: Decompose the initialization task when the application is cold started into an immediate task and a delayed task;
[0042] In this embodiment, the initialization task of the browser will be decomposed first, and the initialization task will be decomposed into immediate tasks and delayed tasks. In this embodiment, the immediate tasks may include global context assignment and initialization of asynchronous tasks, etc. The browser needs to initialize tasks during hot startup. Delayed tasks can include data that does not need to be initialized repeatedly during hot startup, services that do not need to be restarted during hot startup, and global static data initialization. Browsers do not need to be initialized during hot startup. The initialization task may...
Embodiment 2
[0050] Embodiment 2 is a refinement on the basis of Embodiment 1, please refer to figure 2 , figure 2 The flow chart of the method for applying cold start acceleration provided by the embodiment of the present invention, such as figure 2 As shown, the method includes:
[0051] 201: Decompose the initialization task of the application at cold start into an immediate task and a delayed task;
[0052] This step is consistent with the process of step 101 in the first embodiment, and will not be repeated here.
[0053] 202: Executing immediate tasks when the application is cold started, including: at least performing global context assignment and asynchronous task initialization when the application is cold started;
[0054] As in Embodiment 1, the instant task can include necessary initial and time-consuming operations such as global context assignment and asynchronous task initialization. Therefore, in this embodiment, when the browser is cold-started, at least the global ...
Embodiment 3
[0063] In order to implement the method in Embodiment 1 or Embodiment 2, this embodiment provides a device for applying cold start acceleration, please refer to image 3 , image 3 A schematic diagram of a device for applying cold start acceleration provided by an embodiment of the present invention, such as image 3 As shown, the device includes:
[0064] The decomposition unit 301 is configured to decompose the initialization task when the application is cold started into immediate tasks and delayed tasks, wherein the immediate tasks are tasks that need to be initialized when the application is hot started, and the delayed tasks are tasks that do not need to be initialized when the application is hot started. task;
[0065] The execution unit 302 is configured to execute the immediate task when the application is cold started, and execute the delayed task in a delayed manner.
[0066] Further, the executing unit 302 is specifically configured to at least execute global co...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com