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.
但是当Python解释器运行应用程序时,Psyco会不时地检查,看是否能用一些专门的机器代码去替换常规的python字节码操作。
But while the Python interpreter is running an application, Psyco sometimes checks to see if it can substitute some specialized machine code for regular Python bytecode actions.
原因应该和在编译字节码之前,scala解释器把脚本中的语句转换为合法的scala代码的方法有关。
The reason has to do with the way the interpreter converts statements in scripts to valid Scala code before compiling to byte code.
原因应该和在编译字节码之前,scala解释器把脚本中的语句转换为合法的scala代码的方法有关。
The reason has to do with the way the interpreter converts statements in scripts to valid Scala code before compiling to byte code.
应用推荐