CN105630543B - A kind of method and device that application cold start-up accelerates - Google Patents

A kind of method and device that application cold start-up accelerates Download PDF

Info

Publication number
CN105630543B
CN105630543B CN201510967013.0A CN201510967013A CN105630543B CN 105630543 B CN105630543 B CN 105630543B CN 201510967013 A CN201510967013 A CN 201510967013A CN 105630543 B CN105630543 B CN 105630543B
Authority
CN
China
Prior art keywords
task
initialization
cold start
tasks
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510967013.0A
Other languages
Chinese (zh)
Other versions
CN105630543A (en
Inventor
陈耀攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510967013.0A priority Critical patent/CN105630543B/en
Publication of CN105630543A publication Critical patent/CN105630543A/en
Application granted granted Critical
Publication of CN105630543B publication Critical patent/CN105630543B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses the method and devices that a kind of application cold start-up accelerates, it is characterized in that, the described method includes: initialization task when being applied in cold start-up is decomposed into instant task and delayed tasks, wherein, the instant task applies the task that needs initialize in thermal starting to be described, and the delayed tasks are applying and not needing initialization in thermal starting for the task;The instant task is executed in application cold start-up;And delayed tasks described in delayed execution.Since initialization task when using using cold start-up is decomposed into instant task and delayed tasks, and the instant task is executed in application cold start-up, and the technical solution of delayed tasks described in delayed execution, pass through the decomposition of the corresponding initialization task being used in Cold Start, it ensure that under the premise of can be operated normally after application starts, start speed when improving application cold start-up to the greatest extent, to user with good usage experience.

Description

A kind of method and device that application cold start-up accelerates
Technical field
The present invention relates to the method and devices that electronic technology field more particularly to a kind of application cold start-up accelerate.
Background technique
With the continuous development of science and technology, electronic technology has also obtained development at full speed, and the type of electronic product is also got over Come more, people have also enjoyed the various conveniences of development in science and technology bring.Present people can be set by various types of electronics It is standby, it enjoys as development in science and technology bring is comfortably lived.For example, the electronic equipments such as smart phone, tablet computer have become people Live in an important component part, user can be used provided in the electronic equipments such as smart phone, tablet computer it is each Plant application program (hereinafter referred to as applying) to listen to music, play game etc., to mitigate pressure brought by modern fast pace life.
It is also increasing using occupied data volume but as the function that application provides is more and more, and because of intelligence The promotions of the electronic equipments on hardware such as energy mobile phone, tablet computer have reached bottleneck, so especially answering in application starting When with cold start-up (English: cold startup), the reaction speed of application is slower and slower, and user experience is very poor.
Therefore, it exists in the prior art to apply and starts slow technical problem in cold start-up.
Summary of the invention
The embodiment of the present invention is by providing a kind of method and device that application cold start-up accelerates, to solve in the prior art It applies and starts slow technical problem in cold start-up.
First aspect of the embodiment of the present invention provides a kind of method that application cold start-up accelerates, which comprises
Initialization task when being applied in cold start-up is decomposed into instant task and delayed tasks, wherein described i.e. former Business applies the task that needs initialize in thermal starting to be described, and the delayed tasks are that described apply does not need in thermal starting The task of initialization;
The instant task is executed in application cold start-up;And
Delayed tasks described in delayed execution.
It is optionally, described to execute the instant task in application cold start-up, comprising:
In application cold start-up, the initialization of the assignment and asynchronous task of context of overall importance is at least executed.
Optionally, delayed tasks described in the delayed execution, comprising:
The data for repeating to initialize are not needed when by thermal starting, thermal starting does not need the service being again turned on and the overall situation Static data initialization is encapsulated as a set of tasks, and passes through set of tasks described in sub thread asynchronous execution;And
Initialization when facility information task is changed to be called for the first time.
Optionally, the initialization by global static data is encapsulated as a set of tasks, comprising:
Available judgement, sharing and the unloading feedback to the memory space using local environment are at least monitored into initialization It is encapsulated as the set of tasks.
Optionally, initialization when facility information task is changed to be called for the first time, comprising:
It at least will include screen size, screen resolution and the unique knowledge of the channel number to the application and locating terminal The initialization of other code and assignment are more initialized when being called for the first time.
Optionally, it is described the facility information task is changed to be called for the first time when initialization after, the method Further include:
The facility information task is generated to a public document after called, for other threads of the application It uses.
Second aspect of the embodiment of the present invention provides a kind of device that application cold start-up accelerates, and described device includes:
Decomposition unit, for initialization task when cold start-up will to be applied to be decomposed into instant task and delayed tasks, wherein The instant task applies the task that needs initialize in thermal starting to be described, and the delayed tasks are that described apply is opened in heat The task of initialization is not needed when dynamic;
Execution unit, for executing the instant task in application cold start-up, and delay described in delayed execution is appointed Business.
Optionally, the execution unit is specifically used at least executing context of overall importance in application cold start-up The initialization of assignment and asynchronous task.
Optionally, the data for repeating to initialize are not needed when the execution unit is specifically used for thermal starting, heat opens The dynamic service for not needing to be again turned on and global static data initialization are encapsulated as a set of tasks, and different by sub thread Initialization when walking and execute the set of tasks, and facility information task being changed to be called for the first time.
Optionally, the execution unit is specifically used at least sentencing the available of the memory space using local environment Disconnected, sharing and unloading feedback monitor initialization and are encapsulated as the set of tasks.
Optionally, the execution unit is specifically used at least will including channel number and locating terminal to the application Screen size, the initialization of screen resolution and unique identifier and assignment are more initialized when being called for the first time.
Optionally, the execution unit is specifically also used to generate the facility information task after called a public With document, so that other threads of the application use.
The one or more technical solutions provided in the embodiment of the present invention, have at least the following technical effects or advantages:
Since initialization task when using using cold start-up is decomposed into instant task and delayed tasks, and described The technical solution that delayed tasks described in the instant task and delayed execution are executed when using cold start-up, is used in by correspondence The decomposition of initialization task in Cold Start ensure that under the premise of can operate normally after application starts, maximum journey Start speed when the raising application cold start-up of degree, to user with good usage experience.
Detailed description of the invention
Fig. 1 is the flow chart for the method that application provided in an embodiment of the present invention cold start-up accelerates;
Fig. 2 is the flow chart for the method that application provided in an embodiment of the present invention cold start-up accelerates;
Fig. 3 is the schematic diagram for the device that application provided in an embodiment of the present invention cold start-up accelerates.
Specific embodiment
Before introducing the technical solution in the embodiment of the present invention, the present embodiment is first introduced using the specific of cold start-up Process refers to the first initial start of application process using cold start-up, and running environment required for some application processes more for example must The database or service wanted are inactive, and some necessary objects and data do not carry out the operation such as corresponding assignment, such as electricity yet Sub- equipment is again started up browser after starting browser or long-time not running browser for the first time after restarting, at this moment all It needs using after being initialized, such as required running environment of load application etc., application can operate normally, so cold Start-up course can expend longer time, as the data volume that the function of browser is more and more and occupies is increasing, Required running environment also becomes increasingly complex, and needs pre-loaded data also more and more, when cold start-up it is spent when Between it is also increasingly longer, so applying the starting speed in cold start-up also slower and slower in the prior art, to the user's body of user It tests also worse and worse.
Therefore, the embodiment of the present invention is existing to solve by providing a kind of method and device that application cold start-up accelerates It is applied in technology and starts slow technical problem in cold start-up.
It has introduced application cold start-up and then has introduced using thermal starting, it, should when referring to using thermal starting using starting The host process of application has existed, that is to say, that this is applied needs pre-loaded data initialized complete in cold start-up Finish, this starting only needs to be implemented the necessary operation such as initialization of assignment and asynchronous task to context of overall importance, institute With with application cold start-up compared with, using the fast speed of thermal starting.
In practical applications, can be for desktop computer, laptop etc. using the terminal at place, it can also intelligent hand The portable terminals such as machine, tablet computer, herein with no restrictions.
It in the following section, will be specially smart phone with terminal where application, using in specially smart phone For the browser of installation, the technical solution in the present embodiment is discussed in detail.
Embodiment one
Referring to FIG. 1, Fig. 1 is the flow chart for the method that application provided in an embodiment of the present invention cold start-up accelerates, such as Fig. 1 institute Show, this method comprises:
101: initialization task when application is cold-started is decomposed into instant task and delayed tasks;
In the present embodiment, first the initialization task of browser can be decomposed, initialization task is decomposed into immediately Task and delayed tasks, in the present embodiment, instant task may include context of overall importance assignment and asynchronous task just The task that the browsers such as beginningization need to initialize in thermal starting does not need to repeat when delayed tasks may include thermal starting The data of initialization, thermal starting do not need the browsers such as the service being again turned on and global static data initialization in thermal starting When do not need the task of initialization, can also the browsers such as initialization including facility information (SystemInfo) in thermal starting The task of initialization is not needed.
In the specific implementation process, introduction through this embodiment, technical staff belonging to this field can be according to reality Situation to be started will need to apply the initialization task in cold start-up to be decomposed into above-mentioned instant task and delayed tasks, with Meet the needs of actual conditions, details are not described herein again.
After initialization task when that will apply cold start-up decomposes, method provided in an embodiment of the present invention enters 102.
102: executing instant task and delayed execution delayed tasks in application cold start-up.
Specifically, in the present embodiment, it can be and execute above-mentioned instant task in browser cold start-up, and prolong The specific time of Shi Zhihang above-mentioned delayed tasks, delay completes to execute at once later with the instant task execution in step 101 Delayed tasks in step 102.
In the specific implementation process, above-mentioned instant task is executed when browser is cold-started, such as executed on of overall importance After the initialization of assignment and asynchronous task hereafter, it can guarantee that browser starts rapidly, promptly to user to feed back, example Such as, the frame interface etc. of browser is presented to user, meanwhile, the above-mentioned delayed tasks of delayed execution are clear showing to user Look at device frame interface when the data for repeating to initialize are not needed when promptly execute this kind of thermal starting, thermal starting is not required to The tasks such as the service to be again turned on and global static data initialization, under the premise of guaranteeing the normal operation of browser, Realize the technical effect for greatly improving the cold start speed of browser.
As can be seen that appointing since initialization task when using using cold start-up is decomposed into instant task and is delayed It is engaged in, and executes the technical solution of instant task and delayed execution delayed tasks in application cold start-up, by corresponding used in cold The decomposition of initialization task in start-up course ensure that under the premise of can operate normally after application starts, utmostly Raising application cold start-up when start speed, to user with good usage experience.
Embodiment two:
Embodiment is second is that refinement on the basis of example 1, referring to FIG. 2, Fig. 2 is provided in an embodiment of the present invention Using the flow chart for the method that cold start-up accelerates, as shown in Fig. 2, this method comprises:
201: initialization task when being applied in cold start-up is decomposed into instant task and delayed tasks;
This step is consistent with step 101 process in embodiment one, and details are not described herein again.
202: executing instant task in application cold start-up, comprising: in application cold start-up, at least execute above and below of overall importance The initialization of the assignment and asynchronous task of text;
In embodiment one, instant task may include the initialization etc. of the assignment and asynchronous task of context of overall importance must The initial and not time-consuming operation of palpus, so in the present embodiment, in browser cold start-up, it can at least execute of overall importance The two steps of the initialization of the assignment and asynchronous task of context, guarantee the displaying of browser frames, certainly, by this implementation The introduction of example, technical staff belonging to this field can also be actually needed be added it is other it is time-consuming measure less operation, herein just not It repeats again.
203: delayed execution delayed tasks, comprising: the data for repeating to initialize, thermal starting are not needed when by thermal starting It does not need the service being again turned on and global static data initialization is encapsulated as a set of tasks, and is asynchronous by sub thread Execute set of tasks;
Specifically, in the present embodiment, the task that browser is not needed to initialization in thermal starting, such as heat be can be The data for repeating to initialize are not needed when starting, at the beginning of the data that thermal starting does not need the service being again turned on and the overall situation is static Beginningization is encapsulated as a set of tasks, and by executing in step 202 at once after the completion of the task of sub thread in a step 101 Task, avoid waste of time.
203 further include: initialization when being changed to be called for the first time by facility information task;
Specifically, in the present embodiment, browser is needed using facility information, for example, smart phone screen size, Screen resolution and unique identifier etc., of coursing can be with information such as the channels number of browser, herein with no restrictions, not It is just to optimize when browser cold start-up, but by the channel number and locating terminal of the facility information task namely application Screen size, screen resolution and unique identifier initialization and assignment initialization when being changed to be called for the first time, in this way, The starting speed that can either guarantee browser in turn avoids the regular traffic function of influencing browser.
204: after being initialized when facility information task to be changed to be called for the first time, facility information task being adjusted With a public document is generated later, so that other threads of application use.
Since the facility information of browser may be used for other sub threads of application, so in the present embodiment, After initializing when facility information task to be changed to be called for the first time, facility information task is generated one after called Part public document, so that other threads of browser use, in this way, being first invoked this kind of public data of facility information A public document is generated later, facilitates other threads, and guaranteeing browser, other are needed using the function of facility information not by shadow It rings.
As can be seen that in the present embodiment, since initialization task when using using cold start-up is decomposed into immediately Task and delayed tasks, and the technical solution that instant task and delayed execution delayed tasks are executed when cold start-up is being applied, lead to The decomposition for crossing the corresponding initialization task being used in Cold Start ensure that the premise that can be operated normally after application starting Under, start speed when improving application cold start-up to the greatest extent, to user with good usage experience.
Embodiment three
To implement the method in embodiment one or embodiment two, the present embodiment provides the dresses that a kind of application cold start-up accelerates It sets, referring to FIG. 3, Fig. 3 is the schematic diagram for the device that application provided in an embodiment of the present invention cold start-up accelerates, as shown in figure 3, should Device includes:
Decomposition unit 301, for initialization task when cold start-up will to be applied to be decomposed into instant task and delayed tasks, In, instant task is to apply the task that needs initialize in thermal starting, and delayed tasks are to apply not needing in thermal starting just The task of beginningization;
Execution unit 302, for executing instant task, and delayed execution delayed tasks in application cold start-up.
Further, execution unit 302 is specifically used at least executing the assignment of context of overall importance in application cold start-up With the initialization of asynchronous task.
Further, the data for repeating to initialize are not needed when execution unit 302 is specifically used for thermal starting, heat opens The dynamic service for not needing to be again turned on and global static data initialization are encapsulated as a set of tasks, and different by sub thread Initialization when walking and execute set of tasks, and facility information task being changed to be called for the first time.
Further, execution unit 302 be specifically used at least by the available judgement of the memory space of corresponding local environment, Share and unloading feedback monitors initialization and is encapsulated as set of tasks.
Further, execution unit 302 be specifically used at least by include the channel number to application and locating terminal screen Curtain size, the initialization of screen resolution and unique identifier and assignment are more initialized when being called for the first time.
Further, execution unit 302 is specifically also used to generate facility information task after called a public Document, so that other threads of application use.
The device and being opened using cold in previous embodiment one or embodiment two that application cold start-up in the present embodiment accelerates The dynamic method accelerated is to have made in detail to the implementation process of method based on the same inventive concept in terms of lower two in front Description, so those skilled in the art can be apparent from the structure and implementation of the device in the present embodiment according to foregoing description Process, in order to illustrate the succinct of book, details are not described herein again.
The device that application cold start-up provided in this embodiment accelerates, when will apply cold start-up due to using decomposition unit Initialization task be decomposed into instant task and delayed tasks, wherein instant task is to apply to need to initialize in thermal starting Task, delayed tasks be apply do not needed in thermal starting initialization task and execution unit application cold start-up when Instant task, and the technical solution of delayed execution delayed tasks are executed, is appointed by the corresponding initialization being used in Cold Start The decomposition of business ensure that under the premise of can operate normally after application starts, open when improving application cold start-up to the greatest extent Dynamic speed, to user with good usage experience.
One or more technical solution in the embodiment of the present invention, at least has the following technical effect that or advantage:
Since initialization task when using using cold start-up is decomposed into instant task and delayed tasks, and applying The technical solution that instant task and delayed execution delayed tasks are executed when cold start-up is used in Cold Start by corresponding Initialization task decomposition, ensure that application starting after can operate normally under the premise of, to the greatest extent improve application Start speed when cold start-up, to user with good usage experience.
The embodiment of the invention discloses:
The method that A1, a kind of application cold start-up accelerate, which is characterized in that the described method includes:
Initialization task when being applied in cold start-up is decomposed into instant task and delayed tasks, wherein described i.e. former Business applies the task that needs initialize in thermal starting to be described, and the delayed tasks are that described apply does not need in thermal starting The task of initialization;
The instant task is executed in application cold start-up;And
Delayed tasks described in delayed execution.
A2, method according to a1, which is characterized in that the execution in application cold start-up is described former Business, comprising:
In application cold start-up, the initialization of the assignment and asynchronous task of context of overall importance is at least executed.
A3, method according to a1, which is characterized in that delayed tasks described in the delayed execution, comprising:
The data for repeating to initialize are not needed when by thermal starting, thermal starting does not need the service being again turned on and the overall situation Static data initialization is encapsulated as a set of tasks, and passes through set of tasks described in sub thread asynchronous execution;And
Initialization when facility information task is changed to be called for the first time.
A4, method according to a3, which is characterized in that the initialization by global static data is encapsulated as one and appoints Business set, comprising:
Available judgement, sharing and the unloading feedback to the memory space using local environment are at least monitored into initialization It is encapsulated as the set of tasks.
A5, method according to a3, which is characterized in that described at the beginning of when being changed to be called for the first time by facility information task Beginningization, comprising:
It at least will include screen size, screen resolution and the unique knowledge of the channel number to the application and locating terminal The initialization of other code and assignment are more initialized when being called for the first time.
A6, method according to a3, which is characterized in that be changed to be adjusted for the first time by the facility information task described After used time initialization, the method also includes:
The facility information task is generated to a public document after called, for other threads of the application It uses.
The device that B7, a kind of application cold start-up accelerate, which is characterized in that described device includes:
Decomposition unit, for initialization task when cold start-up will to be applied to be decomposed into instant task and delayed tasks, wherein The instant task applies the task that needs initialize in thermal starting to be described, and the delayed tasks are that described apply is opened in heat The task of initialization is not needed when dynamic;
Execution unit, for executing the instant task in application cold start-up, and delay described in delayed execution is appointed Business.
B8, the device according to B7, which is characterized in that the execution unit is specifically used for being cold-started in the application When, at least execute the initialization of the assignment and asynchronous task of context of overall importance.
B9, the device according to B8, which is characterized in that the execution unit is not required to when being specifically used for thermal starting To repeat the data of initialization, thermal starting does not need the service being again turned on and global static data initialization is encapsulated as one Set of tasks, and by set of tasks described in sub thread asynchronous execution, and when facility information task is changed to be called for the first time Initialization.
B10, the device according to B9, which is characterized in that the execution unit is specifically used at least will be to the application Available judgement, sharing and the unloading feedback of the memory space of local environment monitor initialization and are encapsulated as the set of tasks.
B11, the device according to B9, which is characterized in that the execution unit is specifically used for including at least to described The screen size of the channel number of application and locating terminal, the initialization of screen resolution and unique identifier and assignment more exist It is initialized when being called for the first time.
B12, the device according to B9, which is characterized in that the execution unit is specifically also used to the facility information Task generates a public document after called, so that other threads of the application use.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize the denomination of invention according to an embodiment of the present invention (as determined in website The device of Hyperlink rank) in some or all components some or all functions.The present invention is also implemented as being used for Some or all device or device programs of method as described herein are executed (for example, computer program and calculating Machine program product).It is such to realize that program of the invention can store on a computer-readable medium, or can have one Or the form of multiple signals.Such signal can be downloaded from an internet website to obtain, or be provided on the carrier signal, Or it is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of method that application cold start-up accelerates, which is characterized in that the described method includes:
Initialization task when being applied in cold start-up is decomposed into instant task and delayed tasks, wherein the instant task is Described to apply the task that needs initialize in thermal starting, the delayed tasks are that described apply does not need initially in thermal starting The task of change, it is described that not the needing initialization in thermal starting of the task is applied not need when including the thermal starting to repeat to initialize Data, the thermal starting when do not need the service being again turned on and global static data initialization;
The instant task is executed in application cold start-up;And
Delayed tasks described in delayed execution.
2. the method according to claim 1, wherein the execution in application cold start-up is described former Business, comprising:
In application cold start-up, the initialization of the assignment and asynchronous task of context of overall importance is at least executed.
3. the method according to claim 1, wherein delayed tasks described in the delayed execution, comprising:
The data for repeating to initialize are not needed when by thermal starting, thermal starting does not need the service being again turned on and the overall situation is static Data initialization be encapsulated as a set of tasks, and pass through set of tasks described in sub thread asynchronous execution;And
Initialization when facility information task is changed to be called for the first time.
4. according to the method described in claim 3, it is characterized in that, the initialization by global static data is encapsulated as one Set of tasks, comprising:
Available judgement, sharing and the unloading feedback to the memory space using local environment are at least monitored into initialization encapsulation For the set of tasks.
5. according to the method described in claim 3, it is characterized in that, described when being changed to be called for the first time by facility information task Initialization, comprising:
It at least will include screen size, screen resolution and the unique identifier of the channel number to the application and locating terminal Initialization and assignment more for the first time be called when initialize.
6. according to the method described in claim 3, it is characterized in that, it is described by the facility information task be changed to for the first time by After being initialized when calling, the method also includes:
The facility information task is generated to a public document after called, so that other threads of the application make With.
7. the device that a kind of application cold start-up accelerates, which is characterized in that described device includes:
Decomposition unit, for initialization task when cold start-up will to be applied to be decomposed into instant task and delayed tasks, wherein described Instant task applies the task that needs initialize in thermal starting to be described, and the delayed tasks are described apply in thermal starting The task of initialization is not needed, it is described that not the needing initialization in thermal starting of the task is applied not need when including the thermal starting It repeats not needing the service being again turned on and global static data initialization when the data initialized, the thermal starting;
Execution unit, for executing the instant task, and delayed tasks described in delayed execution in application cold start-up.
8. device according to claim 7, which is characterized in that the execution unit is specifically used for being cold-started in the application When, at least execute the initialization of the assignment and asynchronous task of context of overall importance.
9. device according to claim 8, which is characterized in that the execution unit be specifically used for by when thermal starting not Need that the data for repeating to initialize, thermal starting do not need the service being again turned on and global static data initialization is encapsulated as one A set of tasks, and by set of tasks described in sub thread asynchronous execution, and facility information task is changed to be called for the first time When initialize.
10. device according to claim 9, which is characterized in that the execution unit is specifically used at least answering described Initialization, which is monitored, with the available judgement of the memory space of local environment, sharing and unloading feedback is encapsulated as the set of tasks.
11. device according to claim 9, which is characterized in that the execution unit is specifically used for including at least to institute State the channel number of application and the screen size of locating terminal, the initialization of screen resolution and unique identifier and assignment more It is initialized when being called for the first time.
12. device according to claim 9, which is characterized in that the execution unit is specifically also used to believe the equipment Breath task generates a public document after called, so that other threads of the application use.
CN201510967013.0A 2015-12-21 2015-12-21 A kind of method and device that application cold start-up accelerates Active CN105630543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510967013.0A CN105630543B (en) 2015-12-21 2015-12-21 A kind of method and device that application cold start-up accelerates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510967013.0A CN105630543B (en) 2015-12-21 2015-12-21 A kind of method and device that application cold start-up accelerates

Publications (2)

Publication Number Publication Date
CN105630543A CN105630543A (en) 2016-06-01
CN105630543B true CN105630543B (en) 2019-03-05

Family

ID=56045524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510967013.0A Active CN105630543B (en) 2015-12-21 2015-12-21 A kind of method and device that application cold start-up accelerates

Country Status (1)

Country Link
CN (1) CN105630543B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100191B (en) 2015-05-22 2018-09-21 华为技术有限公司 The method, apparatus and system of Java application installations are realized in a kind of cloud compiling
CN106445617B (en) * 2016-10-13 2020-08-04 武汉斗鱼网络科技有限公司 Android-based application cold start optimization method and system
CN106951298A (en) * 2017-04-25 2017-07-14 广州优视网络科技有限公司 A kind of method and apparatus for lifting application toggle speed
CN108958824A (en) * 2017-05-18 2018-12-07 龙芯中科技术有限公司 Starting method, apparatus, electronic equipment and the storage medium of application program
CN107436786A (en) * 2017-07-28 2017-12-05 深圳Tcl新技术有限公司 Using starting guide method, apparatus and computer-readable recording medium
CN111061516B (en) * 2018-10-15 2021-09-14 华为技术有限公司 Method and device for accelerating cold start of application and terminal
CN109669735B (en) * 2018-12-07 2022-02-22 武汉斗鱼鱼乐网络科技有限公司 Application starting method and device based on delayed registration and storage medium
CN109582394B (en) * 2018-12-07 2021-11-26 武汉斗鱼鱼乐网络科技有限公司 Application program starting method and device and storage medium
CN109814930A (en) * 2018-12-27 2019-05-28 维沃移动通信有限公司 A kind of application loading method, device and mobile terminal
CN109918145B (en) * 2019-01-10 2022-05-20 北京字节跳动网络技术有限公司 Application cold start acceleration method and device and electronic equipment
CN111666200A (en) * 2019-03-08 2020-09-15 福建天泉教育科技有限公司 Testing method and terminal for time consumption of cold start of PC software
CN110673887B (en) * 2019-08-15 2021-05-04 华为技术有限公司 Application program starting method and device, terminal equipment and readable storage medium
CN112711427A (en) * 2019-10-24 2021-04-27 华为技术有限公司 Method and device for acquiring mirror image file
CN112506626A (en) * 2020-11-17 2021-03-16 华帝股份有限公司 Application program starting method, computer equipment and storage medium
CN112685149A (en) * 2020-12-18 2021-04-20 宝能(广州)汽车研究院有限公司 Starting method of android application, storage medium and electronic device
CN113127132A (en) * 2021-05-10 2021-07-16 广州欢网科技有限责任公司 Method and system for quickly opening application
CN117421068B (en) * 2023-11-08 2024-06-21 书行科技(北京)有限公司 Application cold start method, system, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289380A (en) * 2010-06-21 2011-12-21 上海中标软件有限公司 firefox starting acceleration method
CN102707973A (en) * 2012-05-04 2012-10-03 惠州Tcl移动通信有限公司 Application program starting method based on Android system and system
CN102999343A (en) * 2012-11-29 2013-03-27 北京奇虎科技有限公司 Method and device for forbidding self-starting of startup project
CN104102506A (en) * 2014-04-25 2014-10-15 华南理工大学 ARM (Advanced RISC Machine) platform based Android startup acceleration method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289380A (en) * 2010-06-21 2011-12-21 上海中标软件有限公司 firefox starting acceleration method
CN102707973A (en) * 2012-05-04 2012-10-03 惠州Tcl移动通信有限公司 Application program starting method based on Android system and system
CN102999343A (en) * 2012-11-29 2013-03-27 北京奇虎科技有限公司 Method and device for forbidding self-starting of startup project
CN104102506A (en) * 2014-04-25 2014-10-15 华南理工大学 ARM (Advanced RISC Machine) platform based Android startup acceleration method

Also Published As

Publication number Publication date
CN105630543A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN105630543B (en) A kind of method and device that application cold start-up accelerates
CN110795195B (en) Webpage rendering method and device, electronic equipment and storage medium
CN103345405B (en) Application program starting method and device and client
CN104375861B (en) Application program based on Android platform exempts from method, device and the terminal of installation and operation
CN110750255B (en) Applet rendering method and device
US10303491B2 (en) Method and device of running application program across systems
US9300736B2 (en) Display control method and device
CN110442327B (en) Application program construction method, device and server
CN105718313A (en) Application operation method and device
CN108549568B (en) Application entry processing method and device, storage medium and electronic equipment
WO2011041556A1 (en) Methods and apparatus for producing cross-platform software applications
CN111767090A (en) Method and device for starting small program, electronic equipment and storage medium
CN109582385A (en) Application program launching method and device, storage medium and electronic equipment
WO2017166448A1 (en) Kernel vulnerability repair method and device
CN108205619A (en) A kind of multi-user management method based on android system and its device
CN111198996A (en) Page display method and device and electronic equipment
US10318343B2 (en) Migration methods and apparatuses for migrating virtual machine including locally stored and shared data
CN109426532A (en) It is connected the method, apparatus and electronic equipment of the page in Android system
CN109697003A (en) A kind of dynamic desktop background display method and mobile terminal
CN105630545B (en) Browser starts method and device
CN103744667A (en) Silverlight-based configuration function achieving system
CN114374703B (en) Cloud mobile phone information acquisition method, device, equipment and storage medium
CN107273102A (en) The generation method and device of mobile applications
CN114995851A (en) Cross-project synchronous updating method, system, equipment and medium for Hongmon system
CN114028801A (en) User input method, device, equipment and storage medium based on cloud

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right