Cold boot optimization of Android performance optimization

1. What is a cold start [the startup time is relatively long]: Before the application starts, the system does not have any process information of the application.

2. What is a hot start [starting time is relatively short]: the user presses the return key and immediately restarts the application.

3. Cold start will go to the application class, and warm start will not go to the application class

4. Cold start process


5. Cold start optimization
   1) Reduce the workload of the onCreate() method of the first interface.
   2) Do not let Application participate in business operations.
   3) Do not perform time-consuming operations in the Application.
   4) Do not save data in Application in the form of static variables.
   5) Reduce the complexity and depth of the layout.

   6) Don't load resources in the main thread.


I think it's okay, give it a thumbs upSmile

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325509765&siteId=291194637