Python vs. Perl vs. PHP?

Diez B. Roggisch deets_noospaam at web.de
Fri Aug 1 13:59:47 EDT 2003


Hi,

> Compared to Apache 2.0 with PHP/Zend & Accelerator? I honestl don't think
> so. When PHP is compiled to native code it is as fast as Java or C.

There is no such thing like a native compiler for PHP. If you're speaking of
the ZEND compiler - AFAIK that one just does some parse tree caching. As I
mentioned before, a friend of mine works on a php->C (and then native, of
course) compiler.

One thing he has to do is to recreate all the library bindings. These are
really slow implemented in PHP - has something to do with the
parameter-passing. And thats something the ZEND compiler doesn't speed up.

Another thing is PHP session mechanism - the simply persist every session to
the filesystem. Sure, there are FS-Caches, but neverless thats not as fast
as imaginable...

And what do you mean by "As fast as Java or C"? There is a huge difference
in speed between these two.

Not that I think that speed matters much here - usually, the bandwidth,
process creation time and database queries are the bottlenecks. 

Regards,

Diez




More information about the Python-list mailing list