Interview questions related to Android exceptions and performance optimization - detailed explanation of cold start optimization interview questions

What is a cold start:

  • Definition of cold start:
    Cold start means that there is no process information of the application in the system before the application is started. In fact, it is the startup that executes the Application.onCreate() method.
  • Difference between cold boot/warm boot:
    Warm boot: The user exits the application with the back key, then immediately restarts the application. In fact, Application.onCreate() will not fire because the process is still alive. So the difference between the two is more understandable.
  • Calculation of cold start time:

Cold start process:

 

How to optimize the cold start time:

 

Guess you like

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