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

Active Publication Date: 2016-06-01
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device for applying cold start ac

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Application cold start acceleration method and apparatus
  • Application cold start acceleration method and apparatus
  • Application cold start acceleration method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

Embodiments of the invention disclose an application cold start acceleration method and apparatus. The method is characterized by comprising the steps of decomposing an initialization task during cold start of an application into a real-time task and a delay task, wherein the real-time task is a task required to be initialized during hot start of the application, and the delay task is a task not required to be initialized during hot start of the application; executing the real-time task during cold start of the application; and delaying the execution of the delay task. According to the technical scheme, the initialization task during cold start of the application is decomposed into the real-time task and the delay task, the real-time task is executed during cold start of the application, and the execution of the delay task is delayed, so that by decomposing the initialization task in the cold start process of the application, it is ensured that on the premise that the application can normally run after being started, the cold start speed of the application is increased to the maximum extent, and the good usage experience is provided for a user.

Description

technical field [0001] The invention relates to the field of electronic technology, in particular to a method and device for applying cold start acceleration. Background technique [0002] With the continuous development of science and technology, electronic technology has also developed rapidly, and there are more and more types of electronic products, and people have also enjoyed various conveniences brought by the development of science and technology. Now people can enjoy the comfortable life brought by the development of science and technology through various types of electronic devices. For example, electronic devices such as smartphones and tablet computers have become an important part of people's lives. Users can use various applications (hereinafter referred to as applications) provided in electronic devices such as smart phones and tablet computers to listen to music and play games. Etc. to relieve the stress of modern fast-paced life. [0003] However, as the a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/445
CPCG06F9/44568
Inventor 陈耀攀
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products