Go Back   Android Forums > Android Discussion > Android Lounge
Android Lounge A place for general Android discussion and questions.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

Like Tree69Likes

test: Reply
 
LinkBack Thread Tools
Old November 7th, 2013, 07:26 AM   #1 (permalink)
The PearlyMon
Thread Author (OP)
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,024
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,691
Thanked 54,820 Times in 21,862 Posts
Default Introducing the new Android Runtime - ART

Ever since the news just prior to the Nexus 5 release that Google had been working on acquiring a company (FlexyCore) specializing in precompiling and optimizing apps, there's been a lot of myths and fantasies floating around about Dalvik changes in Android.

Turns out, there's a bit of an Easter Egg hiding in Developer Options - ART -

http://gigaom.com/2013/11/06/google-starts-testing-art-a-potential-replacement-for-dalvik-in-android/

It's experimental and incomplete but it's there to play with if you like.

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

I recommend a good backup before tinkering, check out Helium Backup if you're not rooted.

Warning - this IS a developer option.

Enjoy.
ocnbrze, dan55 and naonao like this.

__________________
|

Minutus cantorum, minutus balorum, minutus carborata descendum pantorum.

Links: Site Rules / Guidelines -and- Zero Tolerance Policy (All Members Read)


For right-on help, the Thanks button is on the right of the post.
For anything out in left field, the /!\ report button is to the left.

Remember, it's our forums and we're all in this together - so let's keep it cool!

Shoot the breeze at the best new gun forum!
EarlyMon is offline  
Last edited by EarlyMon; November 7th, 2013 at 04:10 PM.
Reply With Quote
The Following 15 Users Say Thank You to EarlyMon For This Useful Post:
alostpacket (November 7th, 2013), breadnatty08 (November 9th, 2013), CDPlant (November 9th, 2013), dan55 (December 2nd, 2013), drbugsmn (November 7th, 2013), funkylogik (November 16th, 2013), Granite1 (December 16th, 2013), jhawkkw (November 7th, 2013), jmar (November 12th, 2013), JunBringer (November 10th, 2013), naonao (December 11th, 2013), ocnbrze (December 17th, 2013), Orion (November 9th, 2013), Rxpert83 (November 7th, 2013), tsaunders (November 10th, 2013)
sponsored links
Old November 7th, 2013, 08:17 AM   #2 (permalink)
Junior Member
 
Join Date: Aug 2013
Posts: 26
 
Device(s): Nexus 5 Nexus 7
Carrier: T-Mobile

Thanks: 2
Thanked 12 Times in 7 Posts
Default

I have been using ART for 2 days on my N5, everything runs amazing though honestly it probably would on Dalvik too I'll switch back if I run into any stability issues though.
cptnobvious999 is online now  
Reply With Quote
The Following 2 Users Say Thank You to cptnobvious999 For This Useful Post:
EarlyMon (November 7th, 2013), Rxpert83 (November 7th, 2013)
Old November 7th, 2013, 09:15 AM   #3 (permalink)
Member
 
Join Date: Feb 2010
Posts: 192
 
Device(s): Nexus 7 & Nexus 5
Carrier: T-Mo

Thanks: 3
Thanked 22 Times in 21 Posts
Default

Switched over on mine yesterday and I've yet to see anything even remotely like a problem.
LaFlavor is offline  
Reply With Quote
The Following User Says Thank You to LaFlavor For This Useful Post:
EarlyMon (November 7th, 2013)
Old November 7th, 2013, 09:17 AM   #4 (permalink)
Ever since DU... ;-)
 
Hook's Avatar
 
Join Date: Mar 2010
Location: Northern VA, USA
Posts: 866
 
Device(s): Nexus One (retired), Nexus 7 (2012), Nexus 4 (donated to son), Nexus 5
Carrier: AT&T (Gophone)

Thanks: 242
Thanked 296 Times in 207 Posts
Default

To take full advantage of this, do you need to factory reset and reinstall apps. I am under the impression that ART works in part by doing something when the app installs, but this is a bit over my head. Probably won't be trying until I am sure how everything works normally on the N5, but I'm curious. Then again, this phone is so damn fast I'm not sure I would notice the difference.
__________________
Nexus 5, 32 GB,Rooted, Dirty Unicorns v7 Official, Android 4.4.2, Build KVT49L, Franco Kernel, Nova Launcher.

Nexus 7 (2012) wifi+data (AT&T), Slimkat Build 4, Android 4.4.2, Build KVT49L, Franco Kernel, Art, Nova Launcher.
Hook is online now  
Reply With Quote
Old November 7th, 2013, 09:50 AM   #5 (permalink)
Member
 
Biaviian's Avatar
 
Join Date: Oct 2012
Location: South Central PA
Posts: 255
 
Device(s): Nexus 5, Nexus 7, Nexus 10
Carrier: Straight Talk (AT&T)

Thanks: 26
Thanked 34 Times in 20 Posts
Default

Quote:
Originally Posted by Hook View Post
Then again, this phone is so damn fast I'm not sure I would notice the difference.
I still can't get over the speed.
Biaviian is offline  
Reply With Quote
Old November 7th, 2013, 10:46 AM   #6 (permalink)
The PearlyMon
Thread Author (OP)
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,024
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,691
Thanked 54,820 Times in 21,862 Posts
Default

Quote:
Originally Posted by Hook View Post
To take full advantage of this, do you need to factory reset and reinstall apps. I am under the impression that ART works in part by doing something when the app installs, but this is a bit over my head. Probably won't be trying until I am sure how everything works normally on the N5, but I'm curious. Then again, this phone is so damn fast I'm not sure I would notice the difference.
When the Dalvik is clear, it updates at boot up.

According to the Android Police article, ART works the same way; they warned that boot up could take some ten minutes to compile your existing apps.

Thereafter, apps are compiled when installed, just as the Dalvik cache is updated when apps are installed.

Based on that, a factory data reset ought not be required.
NYCHitman1, Steven58 and dan55 like this.
EarlyMon is offline  
Last edited by EarlyMon; November 7th, 2013 at 10:48 AM.
Reply With Quote
The Following 4 Users Say Thank You to EarlyMon For This Useful Post:
bogus1 (November 30th, 2013), dan55 (December 2nd, 2013), funkylogik (November 16th, 2013), Hook (November 7th, 2013)
Old November 7th, 2013, 04:42 PM   #7 (permalink)
Member
 
Join Date: Jul 2012
Posts: 195
 
Device(s): Nexus 5 32GB, Nexus 10 (2012), Vizio Co-Star, Chromecast
Carrier: MetroPCS

Thanks: 362
Thanked 109 Times in 71 Posts
Default

Quote:
Originally Posted by EarlyMon View Post
When the Dalvik is clear, it updates at boot up.

According to the Android Police article, ART works the same way; they warned that boot up could take some ten minutes to compile your existing apps.

Thereafter, apps are compiled when installed, just as the Dalvik cache is updated when apps are installed.

Based on that, a factory data reset ought not be required.
I've been running it for 2 days; no issues so far. Correct, factory reset is not required. It just needs to reboot. It goes through its "Android is updating" routine. From reboot, to up and running, it took 8 minutes.
NYCHitman1 and EarlyMon like this.
Twin Prime is offline  
Reply With Quote
The Following 2 Users Say Thank You to Twin Prime For This Useful Post:
EarlyMon (November 7th, 2013), Gatman (November 7th, 2013)
Old November 7th, 2013, 07:30 PM   #8 (permalink)
Junior Member
 
Join Date: Aug 2013
Posts: 26
 
Device(s): Nexus 5 Nexus 7
Carrier: T-Mobile

Thanks: 2
Thanked 12 Times in 7 Posts
Default

Today I finally ran into my first set of issues. Dead Trigger 2 and Kingdom Rush Frontiers both crash on ART. I switched back for now, seems like games aren't built to work with it yet.
EarlyMon likes this.
cptnobvious999 is online now  
Reply With Quote
The Following 3 Users Say Thank You to cptnobvious999 For This Useful Post:
alostpacket (November 7th, 2013), EarlyMon (November 7th, 2013), funkylogik (November 16th, 2013)
Old November 7th, 2013, 09:46 PM   #9 (permalink)
Over Macho Grande?
 
alostpacket's Avatar
 
Join Date: Nov 2009
Location: NY
Posts: 7,873
 
Device(s): GlassXE, MotoX, N5, N4, N7'12, GNex, N1, SGT10.1, Revue, Xoom, Eris, OG Droid
Carrier: TMO

Thanks: 4,582
Thanked 3,563 Times in 1,522 Posts
Default

Very cool. I always thought "Just In Time" was a misnomer
funkylogik likes this.
alostpacket is offline  
Reply With Quote
The Following User Says Thank You to alostpacket For This Useful Post:
EarlyMon (November 7th, 2013)
Old November 7th, 2013, 10:12 PM   #10 (permalink)
The PearlyMon
Thread Author (OP)
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,024
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,691
Thanked 54,820 Times in 21,862 Posts
Default

We used to simply call it run time compiling.
EarlyMon is offline  
Reply With Quote
sponsored links
Old November 7th, 2013, 10:26 PM   #11 (permalink)
Dr. Feelgood
 
Rxpert83's Avatar
 
Join Date: Aug 2011
Location: MN
Gender: Male
Posts: 16,098
 
Device(s): Nexus 7, Nexus 5
Carrier: Sprint

Thanks: 13,625
Thanked 11,778 Times in 6,783 Posts
Default

Been running it for about 24 hours now.

Haven't had any issues yet, but I've read of greenify and titanium backup incompatibilities.

Same goes for custom kernels. If your a tinkerer, its probably best to leave it be until devs get more time with it.

Its been reported this has been worked on over the last 2 years, so is it safe to assume it isn't something flexycore was in on (at least until recently)?
Rxpert83 is online now  
Last edited by Rxpert83; November 7th, 2013 at 10:29 PM.
Reply With Quote
The Following 2 Users Say Thank You to Rxpert83 For This Useful Post:
EarlyMon (November 7th, 2013), funkylogik (November 16th, 2013)
Old November 7th, 2013, 11:46 PM   #12 (permalink)
The PearlyMon
Thread Author (OP)
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,024
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,691
Thanked 54,820 Times in 21,862 Posts
Default

Google engineers have been in talks with FlexyCore people for the last year.

Google said their engineers did this - thanks to the acquisition, FlexyCore's engineers are Google engineers.

FlexyCore stated in 2010 that they were compiling apps into native code (and demonstrated it, I can post a YouTube on that), and that their target was the OEM level, not end users, for revenue.

I could be wrong, but I don't see how this wouldn't be at least a piece of FlexyCore's DroidBooster.
funkylogik likes this.
EarlyMon is offline  
Reply With Quote
The Following 2 Users Say Thank You to EarlyMon For This Useful Post:
alostpacket (November 8th, 2013), Rxpert83 (November 8th, 2013)
Old November 8th, 2013, 01:36 AM   #13 (permalink)
Over Macho Grande?
 
alostpacket's Avatar
 
Join Date: Nov 2009
Location: NY
Posts: 7,873
 
Device(s): GlassXE, MotoX, N5, N4, N7'12, GNex, N1, SGT10.1, Revue, Xoom, Eris, OG Droid
Carrier: TMO

Thanks: 4,582
Thanked 3,563 Times in 1,522 Posts
Default

Quote:
Originally Posted by EarlyMon View Post
Google engineers have been in talks with FlexyCore people for the last year.

Google said their engineers did this - thanks to the acquisition, FlexyCore's engineers are Google engineers.

FlexyCore stated in 2010 that they were compiling apps into native code (and demonstrated it, I can post a YouTube on that), and that their target was the OEM level, not end users, for revenue.

I could be wrong, but I don't see how this wouldn't be at least a piece of FlexyCore's DroidBooster.

Certainly sounds like it fits the bill
alostpacket is offline  
Reply With Quote
The Following User Says Thank You to alostpacket For This Useful Post:
EarlyMon (November 8th, 2013)
Old November 8th, 2013, 01:44 AM   #14 (permalink)
The PearlyMon
Thread Author (OP)
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,024
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,691
Thanked 54,820 Times in 21,862 Posts
Default

I noticed that some of the blogs are talking as if replacing the Dalvik VM changes everything.

I don't buy it.

We still need Android task management as well as intents and defaults.

Not sure where that's happening but I suspect that there's more to this than some bloggers are suggesting.
EarlyMon is offline  
Reply With Quote
Old November 8th, 2013, 02:30 AM   #15 (permalink)
Over Macho Grande?
 
alostpacket's Avatar
 
Join Date: Nov 2009
Location: NY
Posts: 7,873
 
Device(s): GlassXE, MotoX, N5, N4, N7'12, GNex, N1, SGT10.1, Revue, Xoom, Eris, OG Droid
Carrier: TMO

Thanks: 4,582
Thanked 3,563 Times in 1,522 Posts
Default

Indeed there is a limit to any optimization. And some stuff just has to be done at runtime.

I wonder if some of the aggressive compression AAPT does could be one place they might be able to gain performance. i.e. I wonder if another one of the optimizations might be uncompressing the resources like PNGs to the bitmap format the device's screen supports like ARGB_8888/ALPHA_8/RGB_565 etc.
alostpacket is offline  
Reply With Quote
The Following User Says Thank You to alostpacket For This Useful Post:
EarlyMon (November 8th, 2013)
Old November 8th, 2013, 03:23 AM   #16 (permalink)
The PearlyMon
Thread Author (OP)
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,024
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,691
Thanked 54,820 Times in 21,862 Posts
Default

Indeed.

It makes sense that this would save time loading apps.

Prior to this, Google's position has been that, aside from anything computationally intensive, native code holds no advantage over Java.

Source for that, the NDK, emphasis from Google -

http://developer.android.com/tools/sdk/ndk/index.html

Quote:
Before downloading the NDK, you should understand that the NDK will not benefit most apps. As a developer, you need to balance its benefits against its drawbacks. Notably, using native code on Android generally does not result in a noticable performance improvement, but it always increases your app complexity. In general, you should only use the NDK if it is essential to your app—never because you simply prefer to program in C/C++.

Typical good candidates for the NDK are self-contained, CPU-intensive operations that don't allocate much memory, such as signal processing, physics simulation, and so on. When examining whether or not you should develop in native code, think about your requirements and see if the Android framework APIs provide the functionality that you need.
FlexyCore said that they performed optimizations beyond just compiling and Google says that this is a work in progress.

Certainly interesting to see what other optimizations are coming.

I'd also love to see some real memory profiling of the difference here so far.

There seems to be an assumption that the new compiled code will be more compact, reducing the memory footprint.

There are a number of ways to compile code, I don't think that the assumption is automatically true.

As you point out, it's easy to conceive of an optimization that trades space for speed.

Other classic examples are loop unrolling and vectorization.

We know it's not a simple case of precompiling to get the same output as the JIT compiler as evidenced by the earlier report that some games didn't work (yet) under this scheme.

We also need to look at the future impact here.

Pretty clear that 64-bit Android is coming.

Java in a virtual machine is immune to 32/64-bit differences, it's up to the virtual machine to sort that out.

Whether this approach has the same immunity remains to be seen.

Likewise for backup restoration to a new phone architecture.
alostpacket likes this.
EarlyMon is offline  
Last edited by EarlyMon; November 8th, 2013 at 03:30 AM.
Reply With Quote
The Following 3 Users Say Thank You to EarlyMon For This Useful Post:
alostpacket (November 9th, 2013), drbugsmn (November 8th, 2013), Rxpert83 (November 8th, 2013)
Old November 8th, 2013, 07:40 AM   #17 (permalink)
Dr. Feelgood
 
Rxpert83's Avatar
 
Join Date: Aug 2011
Location: MN
Gender: Male
Posts: 16,098
 
Device(s): Nexus 7, Nexus 5
Carrier: Sprint

Thanks: 13,625
Thanked 11,778 Times in 6,783 Posts
Default

Quote:
Originally Posted by EarlyMon View Post
I'd also love to see some real memory profiling of the difference here so far.
It only takes a reboot to go back and forth, so if you've got anything specific you'd like compared I'll see what I can do
EarlyMon likes this.
Rxpert83 is online now  
Reply With Quote
The Following 2 Users Say Thank You to Rxpert83 For This Useful Post:
EarlyMon (November 8th, 2013), funkylogik (November 16th, 2013)
Old November 8th, 2013, 11:47 AM   #18 (permalink)
The PearlyMon
Thread Author (OP)
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,024
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,691
Thanked 54,820 Times in 21,862 Posts
Default

Quote:
Originally Posted by Rxpert83 View Post
It only takes a reboot to go back and forth, so if you've got anything specific you'd like compared I'll see what I can do
Please try your favorite monitor - something like Quick System Info Pro will do - and let's see if anything stands out at a zero-level check.

In QSIP, Processes tab, note some memory sizes of favorite apps run both ways (make sure Show Memory Usage is checked under Preferences from that tab/page).

QSIP also allows you to place a memory-used notification in your task bar and start that at boot-up - see Preferences from the main page, Task Killer Notification.

Check memory free after a reboot and some reasonable settling time - you decide, 10 minutes maybe - for both configurations.

Final point is anecdotal, but check that memory pull down while trying to run some things in the same way (not terribly important for a first look - refresh gmail, visit our home page and search for something in the Play Store for example).

That will tell us two things on a very rough sampling - individual app memory used in a few cases and free memory while running.
funkylogik likes this.
EarlyMon is offline  
Reply With Quote
The Following User Says Thank You to EarlyMon For This Useful Post:
alostpacket (November 9th, 2013)
Old November 8th, 2013, 12:02 PM   #19 (permalink)
Dr. Feelgood
 
Rxpert83's Avatar
 
Join Date: Aug 2011
Location: MN
Gender: Male
Posts: 16,098
 
Device(s): Nexus 7, Nexus 5
Carrier: Sprint

Thanks: 13,625
Thanked 11,778 Times in 6,783 Posts
Default

Quote:
Originally Posted by EarlyMon View Post
Please try your favorite monitor - something like Quick System Info Pro will do - and let's see if anything stands out at a zero-level check.

In QSIP, Processes tab, note some memory sizes of favorite apps run both ways (make sure Show Memory Usage is checked under Preferences from that tab/page).

QSIP also allows you to place a memory-used notification in your task bar and start that at boot-up - see Preferences from the main page, Task Killer Notification.

Check memory free after a reboot and some reasonable settling time - you decide, 10 minutes maybe - for both configurations.

Final point is anecdotal, but check that memory pull down while trying to run some things in the same way (not terribly important for a first look - refresh gmail, visit our home page and search for something in the Play Store for example).

That will tell us two things on a very rough sampling - individual app memory used in a few cases and free memory while running.
I'll have some free time to tinker tomorrow AM, I'll do that and get back to you then.
alostpacket and EarlyMon like this.
Rxpert83 is online now  
Reply With Quote
The Following 2 Users Say Thank You to Rxpert83 For This Useful Post:
funkylogik (November 16th, 2013), Gatman (November 8th, 2013)
Old November 9th, 2013, 06:25 AM   #20 (permalink)
Need Beer and Mustard
 
breadnatty08's Avatar
 
Join Date: Nov 2009
Location: District of Columbia
Posts: 17,730
 
Device(s): LG G2, Moto G, Galaxy S3, Galaxy Nexus LTE, Nexus 7, HTC Flyer
Carrier: Verizon

Thanks: 5,727
Thanked 5,412 Times in 3,566 Posts
Default Enabling ART

Has anyone done this yet? I'm reading how it helps speed things up over using Dalvik. Still don't really know what it does. Just did it on my Gnex running Shiny's 4.4 ROM.
To do it, head into Developer Options and swap over Dalvik to ART. Some are reporting FC's though so tread softly.

Edit: Heads up, if you have a lot of apps and you enable it, the reboot takes a LONG time. It's not bootlooping, just swapping all the cache over.

2nd Edit: Some reading here:
http://www.androidpolice.com/2013/11/06/meet-art-part-1-the-new-super-fast-android-runtime-google-has-been-working-on-in-secret-for-over-2-years-debuts-in-kitkat/
(FYI, I have 172 apps and it's coming up on 10min to optimize them and still not done)
funkylogik likes this.
__________________
New to the forum? Check out the FAQ
Haven't signed up? Join the best Android Forum out there!
Sign up here
breadnatty08 is offline  
Last edited by breadnatty08; November 9th, 2013 at 06:40 AM.
Reply With Quote
The Following 3 Users Say Thank You to breadnatty08 For This Useful Post:
alostpacket (November 9th, 2013), EarlyMon (November 9th, 2013), funkylogik (November 16th, 2013)
sponsored links
Old November 9th, 2013, 06:45 AM   #21 (permalink)
Need Beer and Mustard
 
breadnatty08's Avatar
 
Join Date: Nov 2009
Location: District of Columbia
Posts: 17,730
 
Device(s): LG G2, Moto G, Galaxy S3, Galaxy Nexus LTE, Nexus 7, HTC Flyer
Carrier: Verizon

Thanks: 5,727
Thanked 5,412 Times in 3,566 Posts
Default

Okay, reading helps!
Do not do this on a custom ROM. Everything crashes.
breadnatty08 is offline  
Reply With Quote
The Following User Says Thank You to breadnatty08 For This Useful Post:
alostpacket (November 9th, 2013)
Old November 9th, 2013, 12:16 PM   #22 (permalink)
Senior Member
 
Join Date: May 2010
Location: Columbia, SC
Gender: Male
Posts: 1,051
 
Device(s): Nexus 5, HTC One, Nexus 4, HTC One S, iToy (iPhone)
Carrier: AT&T

Thanks: 34
Thanked 263 Times in 179 Posts
Default

I had stability issues with a lot of my apps so I had to go back to dalvik. It was really fast tho.
EarlyMon likes this.
LoyalServant is offline  
Reply With Quote
The Following 2 Users Say Thank You to LoyalServant For This Useful Post:
alostpacket (November 9th, 2013), EarlyMon (November 9th, 2013)
Old November 9th, 2013, 01:02 PM   #23 (permalink)
Over Macho Grande?
 
alostpacket's Avatar
 
Join Date: Nov 2009
Location: NY
Posts: 7,873
 
Device(s): GlassXE, MotoX, N5, N4, N7'12, GNex, N1, SGT10.1, Revue, Xoom, Eris, OG Droid
Carrier: TMO

Thanks: 4,582
Thanked 3,563 Times in 1,522 Posts
Default

Quote:
Originally Posted by EarlyMon View Post
Indeed.

It makes sense that this would save time loading apps.

Prior to this, Google's position has been that, aside from anything computationally intensive, native code holds no advantage over Java.

Source for that, the NDK, emphasis from Google -

Android NDK | Android Developers



FlexyCore said that they performed optimizations beyond just compiling and Google says that this is a work in progress.

Certainly interesting to see what other optimizations are coming.

I'd also love to see some real memory profiling of the difference here so far.

There seems to be an assumption that the new compiled code will be more compact, reducing the memory footprint.

There are a number of ways to compile code, I don't think that the assumption is automatically true.

As you point out, it's easy to conceive of an optimization that trades space for speed.

Other classic examples are loop unrolling and vectorization.

We know it's not a simple case of precompiling to get the same output as the JIT compiler as evidenced by the earlier report that some games didn't work (yet) under this scheme.

We also need to look at the future impact here.

Pretty clear that 64-bit Android is coming.

Java in a virtual machine is immune to 32/64-bit differences, it's up to the virtual machine to sort that out.

Whether this approach has the same immunity remains to be seen.

Likewise for backup restoration to a new phone architecture.
Interesting point about the NDK! Also I could have sworn I read the JNI overhead was not insubstantial. That was the reason I thought to avoid JNI (that, and much of what is thought to be computationally expensive is already translated to a native implementation by the framework/VM itself).

And definitely the loops are translated by the VM to a native implementation -- it would be interesting to see how this gets optimized. This could certainly gain some performance for large loops (100+ iterations). Could be interesting too, if lambdas come to Android's flavor of Java.

For non-game apps the two biggest performance drags I have noticed are layout and image rendering.

Image optimizations could better prepare the data for something like skia to send it to the surface flinger, but I'm not sure how they would optimize layout. A lot of that happens because of Android's dynamic nature requires several measurement passes through the view tree. I think this is something they improved behind the scenes in 4.3.

I haven't done memory profiling on any apps I have developed in awhile. But I seem to remember that image decoding is performed on the system heap, but still counts against the app's memory usage limit. I'm curious what the optimization would be here.

Another choke point seems to be reflection/method invocation and object access. Then of course there is file IO and Network IO. Network IO has been aided by libraries like Volley, and hopefully more stuff like that will come along. But I suspect platform specific optimizations could certainly help here, though I'm not sure exactly how.


This is certainly an interesting thread though -- even though much of it happens beyond my little sphere of app-dev specific knowledge.
EarlyMon likes this.
alostpacket is offline  
Last edited by alostpacket; November 9th, 2013 at 01:14 PM.
Reply With Quote
The Following User Says Thank You to alostpacket For This Useful Post:
EarlyMon (November 9th, 2013)
Old November 9th, 2013, 01:27 PM   #24 (permalink)
The PearlyMon
Thread Author (OP)
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,024
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,691
Thanked 54,820 Times in 21,862 Posts
Default

Quote:
Originally Posted by alostpacket View Post
Interesting point about the NDK! Also I could have sworn I read the JNI overhead was not insubstantial. That was the reason I thought to avoid JNI (that, and much of what is thought to be computationally expensive is already translated to a native implementation by the framework/VM itself).
Ah. If it helps, you may recall discussion in another thread where I said that context switching needed to be accounted for when comparing native to Java.

Probably you know this but just to be complete, JNI calling is a specific instance of the operating class, context switching.

That's definitely a boundary layer for optimization, you're absolutely correct on that. (What else is new lol.)

I don't know of any generic ways to predict the runtime cost because the user impact for common apps may have to include how often it's jumping back and forth vs time spent on the other side, and assuming best design practices and best methods, I think that still has to vary by app type.

PS - ever since the Snapdragon S4, there's been a separate grid computing element in the processor directly given over to fast UI operations.

I have no idea if it's really being exploited as that's processor specific, something that's usually avoided.

I doubt many people have heard of it.

~~~~~~~

For our curious non-programmers, for an interesting look at some Java vs native differences, check out "CF-Bench"

https://play.google.com/store/apps/details?id=eu.chainfire.cfbench

And for those unfamiliar, note well chainfire's warning that it's not intended to act like benchmarks you may know, the end score is just a number.
alostpacket likes this.
EarlyMon is offline  
Last edited by EarlyMon; November 9th, 2013 at 01:31 PM.
Reply With Quote
The Following User Says Thank You to EarlyMon For This Useful Post:
alostpacket (November 9th, 2013)
Old November 9th, 2013, 02:17 PM   #25 (permalink)
The PearlyMon
Thread Author (OP)
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,024
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,691
Thanked 54,820 Times in 21,862 Posts
Default

Been meaning to mention this for a while -

I think that one thing that will make or break this is garbage collection (translation: reclaiming previously used memory that is free for general use).

Java is very good at it and improvements there was part of what made Gingerbread great.



And I was mistaken earlier, JIT compiling was announced at Google I/O 2010 and introduced in Froyo.



I don't know about anyone else but I really miss those official videos for new Android revisions.
alostpacket likes this.
EarlyMon is offline  
Reply With Quote
The Following 2 Users Say Thank You to EarlyMon For This Useful Post:
alostpacket (November 9th, 2013), breadnatty08 (November 10th, 2013)
Old November 9th, 2013, 08:15 PM   #26 (permalink)
The PearlyMon
Thread Author (OP)
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,024
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,691
Thanked 54,820 Times in 21,862 Posts
Default

IOWA turned me on to this.

http://readwrite.com/2013/11/07/google-says-it-could-replace-dalvik-runtime-in-next-version-of-android

Interesting. A bit overstated, per the above two videos, but interesting.
EarlyMon is offline  
Reply With Quote
Old November 9th, 2013, 08:49 PM   #27 (permalink)
Senior Member
 
Orion's Avatar
 
Join Date: Mar 2010
Location: New York
Posts: 1,472
 
Device(s): Samsung Galaxy Nexus
Carrier: Sprint

Thanks: 352
Thanked 460 Times in 293 Posts
Default

Thanks for all the info EarlyMon! Btw, have you decided on a new phone yet?
Orion is offline  
Reply With Quote
The Following User Says Thank You to Orion For This Useful Post:
EarlyMon (November 9th, 2013)
Old November 9th, 2013, 08:58 PM   #28 (permalink)
The PearlyMon
Thread Author (OP)
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,024
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,691
Thanked 54,820 Times in 21,862 Posts
Default

Quote:
Originally Posted by Orion View Post
Thanks for all the info EarlyMon! Btw, have you decided on a new phone yet?
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.
EarlyMon is offline  
Reply With Quote
Old November 9th, 2013, 09:16 PM   #29 (permalink)
Dr. Feelgood
 
Rxpert83's Avatar
 
Join Date: Aug 2011
Location: MN
Gender: Male
Posts: 16,098
 
Device(s): Nexus 7, Nexus 5
Carrier: Sprint

Thanks: 13,625
Thanked 11,778 Times in 6,783 Posts
Default

Quote:
Originally Posted by EarlyMon View Post
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.
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 .
Rxpert83 is online now  
Reply With Quote
The Following User Says Thank You to Rxpert83 For This Useful Post:
EarlyMon (November 9th, 2013)
Old November 9th, 2013, 09:19 PM   #30 (permalink)
The PearlyMon
Thread Author (OP)
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,024
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,691
Thanked 54,820 Times in 21,862 Posts
Default

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!
EarlyMon is offline  
Reply With Quote
sponsored links
Old November 10th, 2013, 07:17 PM   #31 (permalink)
Member
 
Join Date: Nov 2009
Posts: 388
 
Device(s): Droid
Carrier: Not Provided

Thanks: 20
Thanked 32 Times in 8 Posts
Send a message via AIM to tsaunders Send a message via Yahoo to tsaunders Send a message via Skype™ to tsaunders
Default Dalvik vs ART (Benchmarks)

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
__________________
Send me a PM if you need some hosting space for anything android related.

Follow me on Twitter
tsaunders is offline  
Reply With Quote
The Following 4 Users Say Thank You to tsaunders For This Useful Post:
alostpacket (November 10th, 2013), breadnatty08 (November 14th, 2013), EarlyMon (November 10th, 2013), Rxpert83 (November 10th, 2013)
Old November 10th, 2013, 07:20 PM   #32 (permalink)
Dr. Feelgood
 
Rxpert83's Avatar
 
Join Date: Aug 2011
Location: MN
Gender: Male
Posts: 16,098
 
Device(s): Nexus 7, Nexus 5
Carrier: Sprint

Thanks: 13,625
Thanked 11,778 Times in 6,783 Posts
Default

I was having very high battery drainage after switching from ART back to dalvik. Only a FDR fixed it.
Rxpert83 is online now  
Reply With Quote
The Following 2 Users Say Thank You to Rxpert83 For This Useful Post:
alostpacket (November 10th, 2013), EarlyMon (November 10th, 2013)
Old November 10th, 2013, 09:31 PM   #33 (permalink)
Member
 
Biaviian's Avatar
 
Join Date: Oct 2012
Location: South Central PA
Posts: 255
 
Device(s): Nexus 5, Nexus 7, Nexus 10
Carrier: Straight Talk (AT&T)

Thanks: 26
Thanked 34 Times in 20 Posts
Default

Quote:
Originally Posted by tsaunders View Post
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
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.
Biaviian is offline  
Reply With Quote
The Following User Says Thank You to Biaviian For This Useful Post:
EarlyMon (November 11th, 2013)
Old November 11th, 2013, 09:45 AM   #34 (permalink)
Senior Member
 
Join Date: May 2010
Location: Columbia, SC
Gender: Male
Posts: 1,051
 
Device(s): Nexus 5, HTC One, Nexus 4, HTC One S, iToy (iPhone)
Carrier: AT&T

Thanks: 34
Thanked 263 Times in 179 Posts
Default

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...
EarlyMon likes this.
LoyalServant is offline  
Reply With Quote
The Following 2 Users Say Thank You to LoyalServant For This Useful Post:
alostpacket (November 11th, 2013), EarlyMon (November 11th, 2013)
Old November 11th, 2013, 05:34 PM   #35 (permalink)
Over Macho Grande?
 
alostpacket's Avatar
 
Join Date: Nov 2009
Location: NY
Posts: 7,873
 
Device(s): GlassXE, MotoX, N5, N4, N7'12, GNex, N1, SGT10.1, Revue, Xoom, Eris, OG Droid
Carrier: TMO

Thanks: 4,582
Thanked 3,563 Times in 1,522 Posts
Default

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.
alostpacket is offline  
Last edited by alostpacket; November 11th, 2013 at 06:28 PM.
Reply With Quote
The Following User Says Thank You to alostpacket For This Useful Post:
EarlyMon (November 11th, 2013)
Old November 12th, 2013, 10:37 AM   #36 (permalink)
Senior Member
 
CarsnGadgets's Avatar
 
Join Date: May 2010
Location: UK
Posts: 1,056
 
Device(s): Nexus 5 32GB White, Pebble KickStarter Edition, Nexus 7 16GB, MK808b MiniPc
Carrier: GiffGaff

Thanks: 63
Thanked 253 Times in 140 Posts
Default

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.
EarlyMon and Biaviian like this.
__________________
lose the task killer...!
CarsnGadgets is online now  
Reply With Quote
The Following 3 Users Say Thank You to CarsnGadgets For This Useful Post:
alostpacket (November 12th, 2013), Biaviian (November 12th, 2013), EarlyMon (November 12th, 2013)
Old November 12th, 2013, 10:48 AM   #37 (permalink)
The PearlyMon
Thread Author (OP)
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,024
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,691
Thanked 54,820 Times in 21,862 Posts
Default

Would love to hear how this affects ram too.
EarlyMon is offline  
Reply With Quote
Old November 12th, 2013, 11:26 AM   #38 (permalink)
Member
 
Biaviian's Avatar
 
Join Date: Oct 2012
Location: South Central PA
Posts: 255
 
Device(s): Nexus 5, Nexus 7, Nexus 10
Carrier: Straight Talk (AT&T)

Thanks: 26
Thanked 34 Times in 20 Posts
Default

Quote:
Originally Posted by CarsnGadgets View Post
I lost about 400mb of space after the change with 135 apps installed.
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.
Biaviian is offline  
Reply With Quote
The Following 2 Users Say Thank You to Biaviian For This Useful Post:
alostpacket (November 12th, 2013), EarlyMon (November 12th, 2013)
Old November 12th, 2013, 03:08 PM   #39 (permalink)
Dr. Feelgood
 
Rxpert83's Avatar
 
Join Date: Aug 2011
Location: MN
Gender: Male
Posts: 16,098
 
Device(s): Nexus 7, Nexus 5
Carrier: Sprint

Thanks: 13,625
Thanked 11,778 Times in 6,783 Posts
Default

Early, I was having a lot of battery drain issues when going back an forth from ART to dalvik so I had to factory reset.

Luckily android police seems to have picked up some of the slack and done some tests on their own

Meet ART, Part 2: Benchmarks - Performance Won't Blow You Away Today, But It Will Get Better

Not exactly what you wanted, but maybe a start
alostpacket and EarlyMon like this.
Rxpert83 is online now  
Reply With Quote
The Following 2 Users Say Thank You to Rxpert83 For This Useful Post:
alostpacket (November 12th, 2013), EarlyMon (November 12th, 2013)
Old November 12th, 2013, 05:04 PM   #40 (permalink)
The PearlyMon
Thread Author (OP)
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 44,024
 
Device(s): LTEvo, 3vo, and Shift
Carrier: Sprint

Thanks: 41,691
Thanked 54,820 Times in 21,862 Posts
Default

Quote:
Originally Posted by Rxpert83 View Post
Not exactly what you wanted, but maybe a start
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.
EarlyMon is offline  
Reply With Quote
The Following User Says Thank You to EarlyMon For This Useful Post:
alostpacket (November 12th, 2013)
sponsored links
Old November 16th, 2013, 07:57 PM   #41 (permalink)
share the love peeps ;)
 
funkylogik's Avatar
 
Join Date: Sep 2011
Location: Paisley, Scotland, Western Europe
Gender: Male
Posts: 15,248
 
Device(s): Galaxy S3 (I9300) Carbon nightlies (4.4.2) Nexus 7 (2012) Validus by Ground Zero Roms (4.4.2), Fr
Carrier: 3 (three) UK £15 p/m unltd data/txt

Thanks: 10,939
Thanked 3,871 Times in 3,106 Posts
Default ART (android 4.4)

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..........
__________________
http://giffgaff.com/orders/affiliate/funkylogik
For a UK prepay sim with unlimited data, unlimited text, 250mins for £12p/m, no contract, no catch (runs on o2 network)
funkylogik is online now  
Reply With Quote
Old November 16th, 2013, 08:24 PM   #42 (permalink)
~30% Carbon Black ±
 
Mikestony's Avatar
 
Join Date: Sep 2010
Location: N/W Indiana
Gender: Male
Posts: 18,829
 
Device(s): Samsung Galaxy S3 4G Rooted..
Carrier: Verizon

Thanks: 15,148
Thanked 12,596 Times in 7,757 Posts
Default

I know there was some discussion around here somewhere, but I can't for the life of me, find it!
But it did have this link, which I had bookmarked that explains ART:
How Google May Be Planning To Make Android Apps Faster With ART – ReadWrite


Edit: BAH! wouldn't you know it, I just found it:
http://androidforums.com/nexus-5/792223-introducing-new-android-runtime-art.html
funkylogik likes this.
__________________




Click "Show" for my signature
Android Forums FAQ's
List of Staff
Mikestony is online now  
Last edited by Mikestony; November 16th, 2013 at 08:27 PM.
Reply With Quote
The Following 2 Users Say Thank You to Mikestony For This Useful Post:
breadnatty08 (November 17th, 2013), funkylogik (November 16th, 2013)
Old November 16th, 2013, 08:32 PM   #43 (permalink)
share the love peeps ;)
 
funkylogik's Avatar
 
Join Date: Sep 2011
Location: Paisley, Scotland, Western Europe
Gender: Male
Posts: 15,248
 
Device(s): Galaxy S3 (I9300) Carbon nightlies (4.4.2) Nexus 7 (2012) Validus by Ground Zero Roms (4.4.2), Fr
Carrier: 3 (three) UK £15 p/m unltd data/txt

Thanks: 10,939
Thanked 3,871 Times in 3,106 Posts
Default

Thanks bro i didnt even search :shy:
Cool ill have a reed. Aparently Root Toolbox Pro is compatible.....
EDIT i LOVE Emon but im not ashamed to admit that that thread is over my head lol
funkylogik is online now  
Last edited by funkylogik; November 16th, 2013 at 08:40 PM.
Reply With Quote
The Following User Says Thank You to funkylogik For This Useful Post:
Mikestony (November 16th, 2013)
Old November 16th, 2013, 11:08 PM   #44 (permalink)
Senior Member
 
Medion's Avatar
 
Join Date: Aug 2010
Location: Auburn, WA
Posts: 1,675
 
Device(s): Samsung Galaxy S4 Google Play Edition (GT-i9505G)
Carrier: T-Mobile

Thanks: 43
Thanked 906 Times in 457 Posts
Default

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).
funkylogik likes this.
Medion is offline  
Last edited by Medion; November 17th, 2013 at 12:02 PM. Reason: Typos, clarification, was tired.
Reply With Quote
The Following 7 Users Say Thank You to Medion For This Useful Post:
badblue1 (November 25th, 2013), codesplice (November 16th, 2013), funkylogik (November 16th, 2013), Mikestony (November 17th, 2013), mydian (November 25th, 2013), tudyniuz (November 17th, 2013), uzee (December 17th, 2013)
Old November 16th, 2013, 11:13 PM   #45 (permalink)
Senior Member
 
Mikessv's Avatar
 
Join Date: Oct 2011
Gender: Male
Posts: 618
 
Device(s): Samsung Galaxy S3 Rooted P.a.c. Rom 4.4
Carrier: T-Mobile

Thanks: 117
Thanked 98 Times in 75 Posts
Default

I used Art for a day or so on my S3 running Cm 11. Its faster but still buggy and not all apps work.
Mikessv is offline  
Reply With Quote
The Following User Says Thank You to Mikessv For This Useful Post:
funkylogik (November 17th, 2013)
Old November 16th, 2013, 11:14 PM   #46 (permalink)
share the love peeps ;)
 
funkylogik's Avatar
 
Join Date: Sep 2011
Location: Paisley, Scotland, Western Europe
Gender: Male
Posts: 15,248
 
Device(s): Galaxy S3 (I9300) Carbon nightlies (4.4.2) Nexus 7 (2012) Validus by Ground Zero Roms (4.4.2), Fr
Carrier: 3 (three) UK £15 p/m unltd data/txt

Thanks: 10,939
Thanked 3,871 Times in 3,106 Posts
Default

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?
funkylogik is online now  
Reply With Quote
Old November 16th, 2013, 11:28 PM   #47 (permalink)
Elite Recognized Geek
 
codesplice's Avatar
 
Join Date: Oct 2013
Location: Huntsville, AL
Gender: Male
Posts: 1,702
 
Device(s): Nexus 4, Galaxy Nexus, Nexus One
Carrier: T-Mobile (prepaid)

Thanks: 276
Thanked 921 Times in 579 Posts
Default

Quote:
Originally Posted by funkylogik View Post
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?
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.
codesplice is online now  
Last edited by codesplice; November 16th, 2013 at 11:33 PM.
Reply With Quote
The Following User Says Thank You to codesplice For This Useful Post:
funkylogik (November 17th, 2013)
Old November 17th, 2013, 12:05 AM   #48 (permalink)
share the love peeps ;)
 
funkylogik's Avatar
 
Join Date: Sep 2011
Location: Paisley, Scotland, Western Europe
Gender: Male
Posts: 15,248
 
Device(s): Galaxy S3 (I9300) Carbon nightlies (4.4.2) Nexus 7 (2012) Validus by Ground Zero Roms (4.4.2), Fr
Carrier: 3 (three) UK £15 p/m unltd data/txt

Thanks: 10,939
Thanked 3,871 Times in 3,106 Posts
Default

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?
funkylogik is online now  
Reply With Quote
Old November 17th, 2013, 12:11 AM   #49 (permalink)
Elite Recognized Geek
 
codesplice's Avatar
 
Join Date: Oct 2013
Location: Huntsville, AL
Gender: Male
Posts: 1,702
 
Device(s): Nexus 4, Galaxy Nexus, Nexus One
Carrier: T-Mobile (prepaid)

Thanks: 276
Thanked 921 Times in 579 Posts
Default

Quote:
Originally Posted by funkylogik View Post
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?
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.
codesplice is online now  
Reply With Quote
The Following User Says Thank You to codesplice For This Useful Post:
funkylogik (November 17th, 2013)
Old November 17th, 2013, 12:26 AM   #50 (permalink)
share the love peeps ;)
 
funkylogik's Avatar
 
Join Date: Sep 2011
Location: Paisley, Scotland, Western Europe
Gender: Male
Posts: 15,248
 
Device(s): Galaxy S3 (I9300) Carbon nightlies (4.4.2) Nexus 7 (2012) Validus by Ground Zero Roms (4.4.2), Fr
Carrier: 3 (three) UK £15 p/m unltd data/txt

Thanks: 10,939
Thanked 3,871 Times in 3,106 Posts
Default

Lol mate im bad at uninstalling apps too uploadfromtaptalk1384669579790.jpg
funkylogik is online now  
Reply With Quote
The Following User Says Thank You to funkylogik For This Useful Post:
codesplice (November 17th, 2013)
Reply


Go Back   Android Forums > Android Discussion > Android Lounge
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:42 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.