没有JIT的Andr​​oid设备 [英] Android devices not having JIT

查看:106
本文介绍了没有JIT的Andr​​oid设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是继性能提示通过开发者网站
有提到关于没有JIT Android设备。但我搜索了JIT较少的设备,但无法找到一个宽广的名单。

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.

有也和没有JIT设备之间的巨大差异:最好code代表与JIT的设备并不总是最好的code表示没有设备

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.

在没有JIT的设备,这是事实,通过一个变量调用方法与一个确切的类型,而不是一个接口会更有效。

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

问题是,哪些设备不具备JIT,哪些设备?尽管节目主要对象是JIT设备或并不重要什么是最佳的想法?

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?

推荐答案

根据本文,JIT被添加到Dalvik虚拟机中的Andr​​oid 2.2(升级Froyo)。这意味着蛋糕(1.5),甜甜圈(1.6)和巧克力慕斯蛋糕(2.1)没有它。该 Android的控制台告诉我,有设备仍然在野外的不到2%,无JIT。

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.

就个人而言,我不会花费约没有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.

这篇关于没有JIT的Andr​​oid设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆