CPC G06F 9/4881 (2013.01) [G06F 9/3877 (2013.01); G06F 9/44505 (2013.01); G06F 9/449 (2018.02); G06F 9/5044 (2013.01); G06F 9/541 (2013.01)] | 17 Claims |
1. A method for cold starting up an application, comprising:
collecting, by a terminal, current status information based on a detected startup event, wherein the startup event instructs an operating system of the terminal to cold start up an application, and the current status information comprises a hardware configuration of the terminal, current load of the operating system, resource overheads for cold starting up the application, and duration corresponding to each of a plurality of tasks in a process of cold starting up the application;
determining, based on the current status information, a group of acceleration items corresponding to the application that indicate at least one resource and at least one task that are to be optimized in the current process of cold starting up the application, wherein when the hardware configuration of the terminal is of a first level, the operating system is currently in first level load, the application is of a first resource overheads type, and a long-time-consuming task in the cold startup belongs to a first group of tasks, the application is currently corresponding to a first group of acceleration items; or when the hardware configuration of the terminal is of a second level, the operating system is currently in second level load, the application is of a second resource overheads type, and the long-time-consuming task in the cold startup belongs to a second group of tasks, the application is currently corresponding to a second group of acceleration items;
determining one or more optimization policies corresponding to the group of acceleration items, wherein the one or more optimization policies comprise one or more of a first optimization policy, a second optimization policy, or a combination thereof, and the first optimization policy instructs an adjustment of a resource allocated by the operating system to the cold startup, and the second optimization policy accelerates a task in the cold startup; and
executing the one or more determined optimization policies in the process of cold starting up the application.
|