Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jacob Santos' Blog:
Would PHP benefit from JIT compilation?
Mar 27, 2007 @ 15:52:00

In this post from his blog, Jacob Santos asks the question "would PHP benefit from JIT compilation?"

JIT (just in time) compilation is, according to Wikipedia, a method for converting, at runtime, code from one format into another, for example bytecode into native machine code. To try to see the benefit of this, Jacob asks four questions in his post (each with their own problems):

  • Q: What advantage over opcode caching is gained?
    P: A JIT library that works with PHP would have to support all of the architectures that PHP can run on!
  • Q: Which JIT library is the best one?
    P: A JIT compiler is not going to achieve anything without either storing the results or caching them.
  • Q: Wouldn't writing PHP extensions negate the need for JIT compilation?
  • Q: When will I develop and release my implementation?
Check out the comments for some great thoughts from others about this kind of compilation.

tagged: jit compilation benefit question problem opcode support extension jit compilation benefit question problem opcode support extension

Link:


Trending Topics: