JIT通过将代码编译成机器码,这样可以减少翻译Python指令的时间,以此提高代码的执行速度。 “在CPython里,” Winter 解释道,“这一部分的开销很大;在这方面只做了较小的调整就使CPython 2.7有了近15%速度提升。”
Using a JIT will speed up execution by compiling to machine code, thus eliminating the overhead of fetching, decoding, and dispatching Python opcodes.
在解释代码路径一定次数之后,会把它重新编译成机器码。
After interpreting a code path a certain number of times, it is compiled into machine code.
像Rubinius这样的Ruby1.9虚拟机可以将Ruby源代码编译为操作码,然后由解释器执行。
Ruby 1.9, like Rubinius, compiles Ruby source code to opcodes which are then executed by it's opcode interpreter.
应用推荐