Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,137 Members 50,201 Now Online
XDA Developers Android and Mobile Development Forum

Odex or Deodex with ART?

Tip us?
 
razz1
Old
#1  
razz1's Avatar
Senior Member - OP
Thanks Meter 505
Posts: 455
Join Date: Nov 2011
Location: chicago
Default Odex or Deodex with ART?

So I'm running ART on a deodexed rom and was thinking of re-odexing sys apps and framework. From what I understand is ART converts Deodexed and Odexed files differently. So what would be the better option? Anybody really knowledgeable on ART?
 
razz1
Old
#2  
razz1's Avatar
Senior Member - OP
Thanks Meter 505
Posts: 455
Join Date: Nov 2011
Location: chicago
Well it looks like I may not get an answer but I did some real world testing along with some benchmarks on CM11 and can say without a doubt that ART converts odex better. Why? Not really sure. I don't have the knowledge or the time to really dig into this but an odexed system will still provide a performance improvement thru ART.
If anyone has any insight on the technical reasons as to why this is then please post. It would be interesting.
 
BadUsername
Old
#3  
BadUsername's Avatar
Senior Member
Thanks Meter 744
Posts: 1,492
Join Date: Mar 2013
Quote:
Originally Posted by razz1 View Post
Well it looks like I may not get an answer but I did some real world testing along with some benchmarks on CM11 and can say without a doubt that ART converts odex better. Why? Not really sure. I don't have the knowledge or the time to really dig into this but an odexed system will still provide a performance improvement thru ART.
If anyone has any insight on the technical reasons as to why this is then please post. It would be interesting.
ART works significantly better because it cuts out the middle man dalvik creates. I read this a while ago so I might not be exactly right, but dalvik uses the dalvik cache to store app information, which in turn opens a second file to initiate the app to open. Adds a delay.

ART is specifically written for Android, while dalvik was originally created for much less of a demanding app environment. ART basically just uses 1 file to control an app, which cuts loading time down and the way apps run. It's just much more efficient.

I wouldn't expect odexing or deodexing to make much of a difference in this scenario.
The Following User Says Thank You to BadUsername For This Useful Post: [ Click to Expand ]
 
razz1
Old
#4  
razz1's Avatar
Senior Member - OP
Thanks Meter 505
Posts: 455
Join Date: Nov 2011
Location: chicago
Well I will say this. After a nice look at a logcat today I found errors of ART trying to identify an odex file (ELF Magic). This pertains to all odex! Just thought I would throw this out there if anyone is interested.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes