On Wed, April 25, 2007 4:45 am, Zoltán Németh wrote:
> 2007. 04. 25, szerda keltezéssel 11.33-kor Henning Eiben ezt írta:
>> Hi,
>>
>> I wrote a small sample-application once using PHP (with propel and
>> smarty) and once using Java (JBoss, EJB3, JSP & Servlets). Both apps
>> are
>> being served from a windows server (2x Xeon 1,3GHz, 2 GB RAM), but
>> the
>> performance of the PHP version is much slower than the Java version.
>
> I think this is because Java is compiled once, PHP is compiled at
> every
> request...

With eAccelerator, it's not compiled every request anymore.

It's unlikely that the PHP compile phase is a significant bottleneck
on 99% of web applications' performance.

The BIG win is not the compiling savings, but the hard drive not
getting hit, since the code is stored in RAM after the first page
load.

So he's taken the PHP code and got it in RAM, and now it runs faster,
because the disk isn't getting hit every page.  Oh, and it's just as
easy to store the compiled version as the source, so do that, and save
an extra 2%

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to