What is ART?
Difference between Dalvik and ART
Now summing up all these Dalvik runtime does everything when the apps are executed. Now this is where we must discuss odexed and deodexed ROM. usually all stock ROMs released by OEMs are only odexed only due to this reason. odex means a part of the app is already compiled and it is written into dalvik VM(VM=Virtual Machine). and it runs at boot so while execution of apps JIT has to compile only the remaining part of the code when the apps is executed, this is why odexed ROM is faster than deodexed ROM.
But the disadvantage of odexed ROM is it cannot be edited/themed easily as a part of code is seperated in a separate file, and deodexing means the odex part of the file is put back into the apk/jar itself which makes editing/theming easy since the full code is packed inside a single file but it decreases speed because JIT has to compile full code when the app is executed
Here is the list of apps which are compatible and incompatible in ART.
http://www.androidruntime.com/list
Finally ART is one of the best feature that google brought up in android 4.4 (kitkat)
Quote:
ART stands for Android runtime which is a new runtime like Dalvik which is introduced experimentally in the 4.4 release. This is a preview of work in progress in KitKat that can be turned on in Settings > developer option.n 4.4 both runtimes are now available, Dalvik runtime (libdvm.so) and the ART (libart.so).The user can choose it from developer options. |
Quote:
Dalvik Dalvik runtime uses JIT(Just-In-Time) compilation to interpret Bytecode Now lets understand the technical info and terms in the above sentence. |
Quote:
Compiler A compiler is a program or set of programs that transforms source code written in a programming language (the source language) into another computer language |
Quote:
Bytecode Bytecode also known as p-code (portable code), is a form of instruction set designed for efficient execution by a software interpreter |
Quote:
Interpreter Interpreter is a program which translates the source code into computer/machine language |
Quote:
JIT compliation JIT compliation interprets the bytecode into machine language at it's runtime (at the time when the apps are executed). |
But the disadvantage of odexed ROM is it cannot be edited/themed easily as a part of code is seperated in a separate file, and deodexing means the odex part of the file is put back into the apk/jar itself which makes editing/theming easy since the full code is packed inside a single file but it decreases speed because JIT has to compile full code when the app is executed
Quote:
ART ART uses AOT compilation to interpret bytecode. I hope you can refer to dalvik paragraph to know about these technical terms. :p |
Quote:
what is AOT compilation AOT is a method of compilation which compiles the code into machine language when the app is installed itself, means no compilation is done at the time of execution of app. This makes the apps launch speed amazingly fast. |
Quote:
Advantages of ART over Dalvik
|
Quote:
Some disadvantages of ART
|
http://www.androidruntime.com/list
Finally ART is one of the best feature that google brought up in android 4.4 (kitkat)
Aucun commentaire:
Enregistrer un commentaire