View Single Post
Posts: 1,873 | Thanked: 4,529 times | Joined on Mar 2010 @ North Potomac MD
#94
Originally Posted by smoku View Post
Not so.
The difference between Dalvik and ART is that Dalvik's layer is generated during runtime of the application and ART pre-generates whole right after installing the app.
The level of indirection stays the same - only app startup/wormup time improves.

Maybe I'm confusing things by using the term layer although some times I see diagrams with Dalvik between the software and the CPU. I suppose ART would be there but used differently. I think one important difference is how ART and Dalvik handle the compilation of apps. Because ART uses Ahead-of-TIme (AOT) compilation there can be significant improvement of app performance over Dalvik which uses Just-in-Time(JIT) that compiles code when you run the app. AOT compiles code when you install it.
Maybe JIT approach was useful to reduce memory usage but at the cost of performance speed.

https://source.android.com/devices/tech/dalvik/art.html

Last edited by mscion; 2014-06-26 at 21:37.