Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

On an older phone originally designed to run Android 1.5 or 1.6, what are the pros and cons of using a newer Android feature like the JIT compiler?

share|improve this question
    
As an example, I have an HTC Dream running CyanogenMod 6 and within the options you are able to choose whether to use the JIT or not. Elsewhere I have seen conflicting information on whether the JIT compiler will help or hurt the performance of an older phone. I tried to keep this question from being too phone-specific, as I think an answer to this could help clarify the issue on any older model phone, not just the Dream. –  Mingo Feb 15 '11 at 7:46
3  
Great question. The only thing I know about JIT is from my experience with Java/C#. Mostly that it waits to compile some code until run time and the JIT "smartly" caches code that it sees that repeats itself. Wiki might help explain better: en.wikipedia.org/wiki/Just-in-time_compilation –  Bryan Denny Feb 15 '11 at 14:31
add comment

1 Answer 1

up vote 7 down vote accepted

JIT typically causes an app to use more RAM due to the JIT cache, although Android's JIT was specifically designed so the additional memory usage was minimal (compared to a typical Java JIT). On phones that are already very RAM-starved to begin with, JIT may result in a decrease in performance.

share|improve this answer
1  
This makes sense to me - my Dream is so limited when it comes to RAM that turning the JIT on really killed performance. However, I wonder about other older phones that aren't so short on RAM. –  Mingo Feb 16 '11 at 0:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.