Re: Re: slow performance

From: Date: Wed, 25 Apr 2007 10:55:15 +0000
Subject: Re: Re: slow performance
References: 1 2 3 4 5  Groups: php.general php.windows 
Request: Send a blank email to php-general+get-253685@lists.php.net to get a copy of this message
But as far as I understand, java kinda does the same thing, doesn't it? Java programs are being compiled into some intermediate language, and this is being interpreted at runtime. So using an accelerator should mimic the same setup for php.
Java is much less dynamic language than PHP (try doing $foo = $$bar in Java :) which allows it to generate more low-level and more efficient bytecode and also use JIT compiling to further improve its performance. PHP opcodes is more high-level and not JIT-ed (unless somebody writes JIT for PHP, which didn't happen yet :)
Do you know any resource, describing how php works (like the thing about compiling opcode, and stuff)? How does php handle simultaneous requests?
Try these: http://www.php.net/manual/en/internals.php http://blog.libssh2.org/index.php?/archives/24-Extending-and-Embedding-PHP.html
Are there multiple threads spawned?
Depends on server API. ISAPI does, fastCGi doesn't. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/

« previous php.general (#253685) next »