难道Android的Dalvik虚拟机使用逃脱分析优化? [英] Does the android dalvik vm use escape analysis optimization?

查看:265
本文介绍了难道Android的Dalvik虚拟机使用逃脱分析优化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何有关的Dalvik逃逸分析的想法?或者它计划时,如果待添加?

我认为逃避分析GC语言的一个非常重要的功能,以避免在每次调用方法时搅动了对象,现在我preallocate对象的类和方法的开始重置,所以我避免分配(我写的安卓3D游戏......在Java),但我觉得这个方法丑陋,并保持记忆挤兑以preallocated对象。

解决方案
  

任何有关的Dalvik逃逸分析的想法?

有<一个href="https://github.com/android/platform_dalvik/blob/master/dx/src/com/android/dx/ssa/EscapeAnalysis.java"相对=nofollow>来源$ C ​​$ c。在 DX 在Dalvik项目执行一些有限的逃逸分析的一部分。这是否实际上是在生产中使用的,我不能说,和这个题目肯定似乎并没有拿出非常多。

  

或当,如果它打算加入?

谷歌并没有太大的前瞻性的陈述方式有关Android的功能。

Any ideas about escape analysis in dalvik? Or when and if it's planned to be added?

I consider escape analysis a very important feature in GC languages to avoid churning out objects every time a method is called, and currently I preallocate an object in the class and reset it at the beginning of the method, so I avoid allocation (I am writing 3D games for android...in java), but I find this method ugly and keeps the memory hogged with preallocated objects.

解决方案

Any ideas about escape analysis in dalvik?

There is source code in the dx portion of the Dalvik project that performs some limited escape analysis. Whether this is actually used in production, I cannot say, and the topic certainly does not seem to come up very much.

Or when and if it's planned to be added?

Google does not make much in the way of forward-thinking statements regarding Android's capabilities.

这篇关于难道Android的Dalvik虚拟机使用逃脱分析优化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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