Android devices not having JIT

柔情痞子 提交于 2019-12-13 13:01:04

问题


i was following the Performance Tips through the developer site. There mentions about android devices that don't have a JIT. But i searched for jit-less devices but could not find a broad list.

There are also huge differences between devices with and without a JIT: the best code for a device with a JIT is not always the best code for a device without.

or

On devices without a JIT, it is true that invoking methods via a variable with an exact type rather than an interface is slightly more efficient

Question is which devices dont have JIT, which devices have? And What is the optimal thinking while programming targeting mostly jit devices or it is not important?


回答1:


Based on this article, JIT was added to the Dalvik VM in Android 2.2 (Froyo). This means Cupcake (1.5), Doughnut (1.6) and Eclair (2.1) don't have it. The Android Dashboard tells me that there are less than 2% of devices still in the wild without JIT.

Personally, I would not spend a minute thinking about devices without JIT; for one, those older devices would have smaller screens and fewer resources anyway, and aren't the target for my apps.




回答2:


from command prompt go to android sdk platforrm-tools. From there

adb shell
dalvikvm -h

There at the bottom of the line there will be written Configured with: ..... jit.........



来源:https://stackoverflow.com/questions/16171035/android-devices-not-having-jit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!