开发商应该考虑ART(Android的运行系统)的设计目标相对于DVM模式? [英] Should developer consider any design objectives for ART (Android Runtime) with respect to DVM mode?

查看:313
本文介绍了开发商应该考虑ART(Android的运行系统)的设计目标相对于DVM模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想,这可能是有点早问这个问题。但需要对这个您的想法。

I think, it might be bit early to ask this question. But need your thoughts on this.

我读到ART模式(Android的Runttime),其中有:

I read about ART mode (Android Runttime), which is as follows,

艺术是一个新的Andr​​oid运行时被实验地介绍,在4.4版本奇巧,这是在奇巧工作进展的preVIEW,它是可用于获取早期开发者和合作伙伴的反馈的目的。

"ART is a new Android runtime being introduced experimentally in the 4.4 release KitKat. This is a preview of work in progress in KitKat. It is available for the purpose of obtaining early developer and partner feedback."

不过也读到,一些应用程序可能会崩溃,如果切换到ART模式。所以,我想知道,是否我需要考虑的设计目标,在艺术和DVM模式下运行我的应用程序编程时?

But also read that, Some apps might crash, if switch to ART mode. So, I want to know, whether do I need to consider any design objectives to run my app in ART and DVM mode while programming?

推荐答案

是的,有的时候一味假设你的应用程序将在Dalvik的运行可能遇到的一些问题。因此,即使ART仍处于试验阶段,因此不应被普通用户使用,你可能要考虑以下几点:

Yes, there are some problems you might encounter when blindly assuming your app will be run on Dalvik. So, even though ART is still experimental, therefore shall not be used by normal users, you might want to consider the following points:


  • 动态加载地塞米松(像在Facebook的应用程序使用)在运行时可能不是可能的,因为AOT编译器可能无法在运行时可用。

  • 因此,使用运行时字节code操纵,像Clojure的东西,可能会当ART运行遇到的问题。

  • 根据这个线程和Reddit上的一些意见,Xamarin遇到艺术的问题也是如此。

  • Dynamic Dex loading (like used in the Facebook app) might not be possible at runtime because the AOT compiler might not be available at runtime.
  • Therefore, anything that uses runtime Bytecode manipulation, like Clojure, might encounter problems when run on ART.
  • According to this thread and some comments on Reddit, Xamarin encounters problems with ART as well.

基本上,任何依赖在特定的Dalvik的功能是崩溃的可能来源。

Basically, anything that relies on Dalvik-specific features is a possible source for crashes.

更新显然的,DEX装载艺术做工精细,用的 AOT 的-ing磁盘上的文件和缓存编译版本。真棒! :)

Update: Apparently, dex loading with ART works fine, by aot-ing the files on disk and caching the compiled versions. Awesome! :)

这篇关于开发商应该考虑ART(Android的运行系统)的设计目标相对于DVM模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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