 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
• |
PHP
will never be as fast as C/C++
|
|
|
|
– |
Interpreted
language
|
|
|
|
– |
Will
always be slower than compiled
|
|
|
|
– |
Accelerators
only help a little
|
|
|
• |
What
if we could compile PHP to C?
|
|
|
– |
Utilize
gcc’s 18 years of optimizations
|
|
|
|
– |
Write
opcodes out as ANSI C and
|
|
|
invoke
gcc
|
|
|
|
– |
Emit
each page as a shared object
|
|
|
• |
Even
better: a JIT compiler for PHP?
|