Android ART Runtime


Android 5.0(Lollipop) and above have been using ART as the main runtime.

ART was introduced experimentally in Android 4.4 KitKat.

Before ART Runtime was DVM(Dalvik Runtime).

ART runtime utilizes AOT(Ahead Of Time) compilation. This compilation model involves optimizing application performance on startup and application execution.

DVM utilizes JIT(Just In Time) compilation model. However, with AOT dex files are compiled during installation.

This compilation is done using the dex2oat tool.

Advantages of AOT Compilation

No. Advantage
1. Removal of delay introduced by JIT compilation during each application execution.This is because Dex2oat will generate system-dependent code for the device it's run on.
2. Reduction in number of processor cycles used by the application.This is because AOT will remove the time the JIT compiler normally uses to convert code into machine format.
3. Reduction in battery power consumption.This is because of the reasons listed above.
4. Improvements in Garbage Collection and memory allocation.This results in more responsive applications.

Disadvantages of AOT compilation

No. Disadvantage
1. Larger memory footprint than JIT and DVM

How do You Feel after reading this?

According to scientists, we humans have 8 primary innate emotions: joy, acceptance, fear, surprise, sadness, disgust, anger, and anticipation. Feel free to tell us how you feel about this article using these emotes or via the comment section. This feedback helps us gauge our progress.

Help me Grow.

I set myself some growth ambitions I desire to achieve by this year's end regarding this website and my youtube channel. Am halfway. Help me reach them by:




Recommendations


What do You Think


Previous Post Next Post