I've seen a lot of use of final for local primitives.

Presumable to indicate to the compiler that the value shouldn't be changed.

However, what's the implication of this on Dalvik?

I believe final local variables are usually placed on the heap for extended
lifetime (for use in inner classes), so is their a runtime overhead rather
than using simple locals (which use Dalvik registers)?


Thanks,
 Tim

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to