AndroidStudio study notes-03ART mode

Dalvik compiles the dex bytecode into machine code and then executes it every time the program is executed. ART is also known as precompilation mode. It will be compiled into machine code
source code -> bytecode -> machine code Android4 when installed . 4 Start to join ART, coexist with Dalvik, users can choose the mode by themselves, from Android 5.0 onwards, fully implement ART, completely discard Dalvik,

RAM running space: 4G ROM storage space: 64G

The difference between Dalvik and Art:

 

1. Dalvik has to be compiled and run every time. Art will only be compiled when it is installed for the first time.
2. Art occupies about 10%-20% larger space than Dalvik. Use "space for time" 3. Art reduces compilation and reduces CPU usage , Use significantly improves battery life 4. Art application starts faster, runs faster, has a smoother experience, and more timely tactile feedback

Guess you like

Origin blog.csdn.net/a451319296/article/details/107828017