ART stands for "Android Runtime" which is a new compiler for android apps available with the latest version of android i.e. Kitkat.
Though it is still an experimental thing but if you have a Kitkat phone then you can move from Dalvik to ART through developer settings.
for official documentation goto:https://source.android.com/devices/tech/dalvik/art.html
First of all there might be a question in every reader's mind who is not a "Developer" would be...."WHAT IS DALVIK?" or "WHAT IS A COMPILER?"........
COMPILER: Every operating system has a compiler as a part of it which is a "system software" acting as a "translator" for apps .Any app or software is basically written in a programming language.The computer cannot understand anything other than binary code.Hence a compiler converts the code written in programming language to the machine code which further allows the OS to run the APP.
now coming to the DALVIK part.....
Dalvik is the compiler which is used by LINUX operating system and as we all know that ANDROID is based on linux , uptill now it is the main compiler used for translating apps and run.
Google has been working for last two years to build an independent compiler for android which can be an efficient way of running apps in a better and faster way.Development has started on this path since KITKAT was released.
WHY ART?
The Way in which Dalvik compiles APPs can be explained as follows:
When you click on the app, the compiler gets into action and runs the app starting all necessary services.This approach is known as JUST IN TIME(JIT) which means that every time you run an app, the compiler has to compile the resources everytime taking a bit more time to launch it.
This is where ART comes into the limelight.ART uses an AHEAD IN TIME (AIT) approach in which the APP is compiled only once during the installation.This allows the APP to launch quite faster than that in Dalvik based OS.Also as the compiler does not have to work every time you launch an APP hence this helps in LONGER BATTERY LIFE.
Also the large apps like ASPHALT 8 open and process quickly than in the Dalvik mode.
This ART has also helped in getting ANDROID run on the 64-bit architecture which means faster processing and more memory utilization capabilities.
ADVANTAGES:
1.Longer battery life.
2.faster app launching or execution.
3.Better APP processing.
4.MORE FREE RAM.....
DISADVANTAGES:
1.still in experimental mode.
2.consumes more storage(the compiled data during installation has to be stored on memory.iOS apps are also big due to same reason)
3.Apps take longer time to install.
No comments:
Post a Comment