1. Hot New Devices! HTC One M9 | Samsung Galaxy S6 | LG G4

Introducing the new Android Runtime - ART


  1. EarlyMon

    EarlyMon The PearlyMon Moderator

  2. Orion

    Orion Well-Known Member

    Thanks for all the info EarlyMon! Btw, have you decided on a new phone yet?
    EarlyMon likes this.
  3. EarlyMon

    EarlyMon The PearlyMon Moderator

    You know, I really haven't.

    I'm not *unhappy* with what I have now (rooted and screaming Evo 4G LTE) and I'm not *unhappy* with Sprint, but I'm going to wait a little bit longer and see if I might not prefer to switch to T-Mobile.

    CM 11 just dropped today for my LTEvo, official Sense 5/4.3 is just around the corner, better Sense 5 rooted already exists, so I have a lot of room to play.

    I expect to see ART supported pretty soon. :)
  4. Rxpert83

    Rxpert83 Dr. Feelgood Moderator

    That's one of the reasons I really like the nexus 5. I could pop in a T-Mobile or ATT SIM when my sprint contracts up and never miss a beat.

    PS. Haven't gotten a chance to do the ART test you described yet. Sorry about that :eek:.
    EarlyMon likes this.
  5. EarlyMon

    EarlyMon The PearlyMon Moderator

    Today I'm liking the N5 because it introduced ART with Key Lime Pie KitKat.

    Anyway - lets stick to ART. :)

    Looking forward to what you find Rx!
  6. tsaunders

    tsaunders Well-Known Member

    I just learned about ART while on G+. I decided to give it a try. I had already ran some benchmarks before on Dalvik.

    Here are the results


    AnTuTu:

    Dalvik: 24,745
    ART: 27,546

    There was an increase of 2,801

    Quadrant (I don't have the full version)

    Dalvik: 9,407 (That's what I remember)
    ART: 12,072

    There was an increase of 2,665
  7. Rxpert83

    Rxpert83 Dr. Feelgood Moderator

    I was having very high battery drainage after switching from ART back to dalvik. Only a FDR fixed it.
    alostpacket and EarlyMon like this.
  8. Biaviian

    Biaviian Well-Known Member

    Did you notice less available space on your phone? Using ART, as I understand it, will cause apps to take up more storage space. How much more I don't know but I assume it is on an app by app basis.
    EarlyMon likes this.
  9. LoyalServant

    LoyalServant Well-Known Member

    Someone did some vids with a pair of N7s.
    Side by side video - ART vs Dalvik on N7 2013 : Android

    Seems about right from my experience.

    Compiling the app at install time just makes sense from a backwards compatibility standpoint.

    Obviously if Android was new today then doing this at compile time (when the developer compiles it) would make more sense.

    I wonder if this was started because of the Oracle patent trial...
    alostpacket and EarlyMon like this.
  10. alostpacket

    alostpacket Over Macho Grande? VIP Member

    If Oracle had won, they would have had to toss the SDK (or buy a license). It was less about Dalvik and more about using "Java" and its respective trademarks and whatnot. But luckily the judge realized Oracle was being ridiculous.


    Dalvik was already a clean-room design.

    Cool videos though, seem to be a lot on youtube.


    Going to try my N5 now. Because ART. :)
    EarlyMon likes this.
  11. CarsnGadgets

    CarsnGadgets Well-Known Member

    I have been running using ART for 2 days now and my Nexus 5 seems to be just as fast if not even faster, especially loading apps. (except tiny deathstar which takes ages now?) and the battery life would seem to have improved as well. My "Ok Google" function does seem to be playing up a bit since the change, but that may be a coincidence. None of my 135 installed apps had any problem being re compiled at boot and so far I havent had any issues. I lost about 400mb of space after the change with 135 apps installed.
    alostpacket, Biaviian and EarlyMon like this.
  12. EarlyMon

    EarlyMon The PearlyMon Moderator

    Would love to hear how this affects ram too. :)
  13. Biaviian

    Biaviian Well-Known Member

    Thanks for that bit of data. That doesn't seem too bad but I guess it depends on how much storage you have on your phone.
    alostpacket and EarlyMon like this.
  14. Rxpert83

    Rxpert83 Dr. Feelgood Moderator

    alostpacket and EarlyMon like this.
  15. EarlyMon

    EarlyMon The PearlyMon Moderator

    As you know, I don't put much stock in benchmarks, they're very limited.

    My only expectation at this stage is that load times are reduced.

    I think performance benchmarks are premature when we know that not all apps runs with it.

    Java/Dalvik works INSANELY well for well-designed apps.

    I think it's possible that some people think that because there's a big difference between native and Java apps on a PC, there's supposed to be in Android.

    However - the Android Dalvik Virtual Machine is not the Oracle Java VM, and this isn't a desktop environment windowing overlay - in our case, apps provide the desktop.


    I don't have any expectations for performance increases beyond load times at this point, one way or the other.


    That said, I do appreciate the link. :)

    We have an idea of the storage cost increase thanks to CarsnGadgets.

    Now I'm just curious about the runtime memory footprint.

    The storage cost is rational and understandable - now the question is does that get offset by the ram costs or not.

    And both could change in future releases.
    alostpacket likes this.
  16. funkylogik

    funkylogik share the love peeps ;) VIP Member

    Anyone got a good laymans summary of what this is/does?
    All ive heard is that it speeds things up but TiBu wont work with it.......... :beer:
  17. Mikestony

    Mikestony ~30% Carbon Black ± Moderator

    breadnatty08 and funkylogik like this.
  18. funkylogik

    funkylogik share the love peeps ;) VIP Member

    Thanks bro i didnt even search :shy:
    Cool ill have a reed. Aparently Root Toolbox Pro is compatible..... :beer:
    EDIT i LOVE Emon but im not ashamed to admit that that thread is over my head lol :beer:
    Mikestony likes this.
  19. Medion

    Medion Well-Known Member

    Here's a very simplistic way of explaining it. This is not 100% accurate and is just meant to paint a picture.

    The ideal situation for a program is to be done native to the device, as iOS apps are done. Think of it as the app and the OS as two people, and native means that they both speak the same language.

    For Android, most apps are not native, but instead are based on Java. So, in this case, the app is a person speaking one language, and the OS is speaking another. So, they need a real-time translator, Dalvik. Dalvik translates on the fly but this real-time translation, or just-in-time (JIT), takes up resources.

    The idea behind ART is that when an app is installed, they get translated immediately. So, anytime that you run an app after the installation completes, the app will run like a native app. For high-end devices you won't notice a difference in performance, but the system will notice. That CPU will have less overhead, not ramping up as high in terms of clock speed thus preserving some battery life.

    The idea behind ART is that apps run as if they're native to the OS which helps to improve performance and reduce battery usage. The last time we saw this was when Dalvik got its JIT compiler in Android 2.2, which had a noticeable performance increase over the older method. You can expect something similar here once ART is fully taken advantage of (likely Android 4.5/5.x).
    uzee, badblue1, mydian and 4 others like this.
  20. Mikessv

    Mikessv Well-Known Member

    I used Art for a day or so on my S3 running Cm 11. Its faster but still buggy and not all apps work.
    funkylogik likes this.
  21. funkylogik

    funkylogik share the love peeps ;) VIP Member

    Thanks bro i understand that. is this why people are reporting 10mins+ boot times when they first change to ART, after that the apps should be optimised to start faster?
    Can anyone confirm that Rom Toolbox will backup apps when in ART (format/mode, dont know the word lol) whereas Titanium wont YET?
    :beer:
  22. codesplice

    codesplice Elite Recognized Geek Moderator

    Dalvik also has a long boot on its first run - when you see the "Android is upgrading..." message, Dalvik is examining all the non-native apps and doing a little bit of optimization/translation for them. It places this optimized code in the Dalvik Cache (so that's what that is, in case you were curious to know what you wipe when flashing). Dalvik only does a little bit of optimization ahead of time though - most is done at run time, and that optimization gets stored in RAM instead of the persistent Dalvik cache.

    ART does the same cache-building when it is first enabled too, but since it does much more optimization ahead of time it takes much longer to build that initial cache. By the way, since ART puts more data in its cache (and thus less optimization code in RAM) it will require more storage space per app than Dalvik - make sure you've got a few GB free before switching to ART! Otherwise you may run into a boot that never ends (ask how I know...).
    funkylogik likes this.
  23. funkylogik

    funkylogik share the love peeps ;) VIP Member

    Thanks man. Take it you mean a few free GB of storage? Thats cool i did a huge clearout the other day n like halved my internal storage use lol :)
    Im not gona shift fully to 4.4 yet anyway so just gettin the groundwork in.
    Im on an sgs3 and CM 11 runs lovely but i really like Xposed Framework which isnt compatible YET :)

    P.s, switching from 4.4 to 4.3 nandroid and back again.. what issues could ART throw into the works?
  24. codesplice

    codesplice Elite Recognized Geek Moderator

    Yeah, a few GB free. I'm an app junkie; something like 225 apps installed when I made the switch to ART and the ~1GB I had free was clearly not enough. Somehow managed to get it to revert to Dalvik, removed some large apps, nuked some giant directories, and then made it back to ART without an issue.

    I don't think that ART should make nandroiding any more difficult.
    funkylogik likes this.
  25. funkylogik

    funkylogik share the love peeps ;) VIP Member

    Lol mate im bad at uninstalling apps too :D uploadfromtaptalk1384669579790.jpg
    codesplice likes this.

Share This Page