Android ART Runtime

| Page Views: 314

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.

About Me.

After completing his Software Engineering bachelors program, Oclemy(Clement Ochieng) these days is a man of two lives. At day he works for a startup in Nairobi, Kenya. At night he works tirelessly on building ProgrammingWizards TV, a tv channel for student coders and this website to help share the source code. In between he practices Meditation and Self actualization to help him keep balance. He also likes going for long solo walks to connect more with nature.


What do You Think

Previous Post Next Post