What will be the difference if Dalvik is replaced by ART in Android?

stylor

There have been indications that Google will be replacing Dalvik with ART in the next version of Android. What difference will this make to developers and consumers? Will there be noticable benefits?

Answer this Question

Answers

2 total
jimlynch
Vote Up (4)

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

"ART Features
Here are some of the major new features implemented by ART.

Ahead-of-time (AOT) compilation

ART introduces ahead-of-time (AOT) compilation, which can improve app performance. ART also has tighter install-time verification than Dalvik.

At install time, ART compiles apps using the on-device dex2oat tool. This utility accepts DEX files as input and generates a compiled app executable for the target device. The utility should be able to compile all valid DEX files without difficulty. However, some post-processing tools produce invalid files that may be tolerated by Dalvik but cannot be compiled by ART. For more information, see Addressing Garbage Collection Issues.

Improved garbage collection

Garbage collection (GC) can impair an app's performance, resulting in choppy display, poor UI responsiveness, and other problems. ART improves garbage collection in several ways:

One GC pause instead of two
Parallelized processing during the remaining GC pause
Collector with lower pause time for the special case of cleaning up recently-allocated, short-lived objects
Improved garbage collection ergonomics, making concurrent garbage collections more timely, which makes GC_FOR_ALLOC events extremely rare in typical use cases
ART currently does not use compacting GC, but this feature is under development in the Android Open Source Project (AOSP). In the meantime, don't perform operations that are incompatible with compacting GC, such as storing pointers to object fields. For more information, see Addressing Garbage Collection Issues."

aiden
Vote Up (1)

The short version: the next version of Android with ART instead of Dalvik runtime load a little faster, run a little smoother and be slightly more power efficient for improved battery life, but at the cost of a little more space. 

Ask a question

Join Now or Sign In to ask a question.
From sign-on bonuses to long-term equity bonus incentives to perks such as paying for the lease on a new Tesla, firms are upping the ante to attract and hire elite software development talent in a tight market.
Ryan Carmack, the 9 year-old son of the famed programmer and game designer, has released Pong-clone called Angry Face
Traditional development practices used for desktop apps will not work for mobile apps, and companies must instead adopt agile development, says analyst Gartner.
A new study reveals that Java developers make the most while JavaScript programmers are the most wanted
Mark Zuckerberg’s latest app takes onerous Terms of Service to a strange new level
Using a combination of Jenkins and Circle CI, plus some Ruby and GitHub know-how, will make for a smooth process.
Want to offer extra functionality to your users based on where they are? Here's how.
With competition being as intense as ever, Google is attempting to distinguish its cloud offering by appealing directly to developers.
New data from AngelList shows the top technology choices that startups are making
GitHub has been called the 'social network for programmers.' Here's how to get started on the popular site for sharing and hosting code (and other things).
Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+