如何JIT编译器帮助的应用程序的性能? [英] How a JIT compiler helps performance of applications?

查看:168
本文介绍了如何JIT编译器帮助的应用程序的性能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚才读的 Android有一个450%的性能提升,因为它增加了一个JIT编译器,我知道什么是JIT是的,但我真的不明白为什么它比普通编译$ C更快$ C?或者有什么用从Android平台(类似Java的运行编译后的字节code)。

I just read that Android has a 450% performance improvement because it added a JIT compiler, I know what JIT is, but I don't really understand why is it faster than normal compiled code? or what's the difference with the older approach from the Android platform (the Java like run compiled bytecode).

谢谢!

编辑:这是非常有趣的,谢谢!我希望我能选择的每一个答案正确的:)

This is hugely interesting, thanks!, I wish I could pick every answer as correct :)

推荐答案

首先一个声明,我不是在所有熟悉的Andr​​oid。反正...

First a disclaimer, I'm not at all familiar with Android. Anyway...

有两种应用JIT编译的,我很熟悉。一种是从针对字节codeS转化为实际的机器指令。二是 Superoptimisation

There are two applications of JIT compilation that I am familiar with. One is to convert from byte-codes into the actual machine instructions. The second is Superoptimisation.

JIT字节code编译速度的东西,因为字节codeS只是interpeted一次,而不是每次都被执行。这可能是最佳选择,您所看到的那种。

JIT bytecode compilation speeds things up because the bytecodes are only interpeted once, instead of each time it is executed. This is probably the sort of optimisation you are seeing.

JIT superoptimsation,其搜索的实现程序逻辑指令真正的最优解集,是多了几分神秘。它可能不是你谈论,虽然我已经阅读了100%,报告 - 200%的速度增长,结果

JIT superoptimsation, which searches for the truly optimal set of instructions to implement a programs logic, is a little more esoteric. It's probably not what your talking about, though I have read reports of 100% - 200% speed increases as a result.

这篇关于如何JIT编译器帮助的应用程序的性能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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