Here are the key differences between ART (Android Runtime) and Dalvik:
Compilation Approach
- Dalvik uses Just-In-Time (JIT) compilation, where DEX bytecode is converted to native machine code on demand when the app is launched. This results in slower app startup times.
- ART uses Ahead-Of-Time (AOT) compilation, where DEX bytecode is fully compiled to native machine code when the app is installed. This improves app launch performance.
Performance
- ART provides significantly faster app performance and smoother UI compared to Dalvik. Apps are more responsive with ART.
Battery Life
- ART improves battery life by reducing CPU cycles needed to launch apps. The AOT compilation approach is more efficient.