Re: HipHop and other PHP compiler performance evaluation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Raymond,

on 02/25/2010 11:34 PM Raymond Irving said the following:
> 
> Very nice article. Thanks for sharing.
> 
> I wish PHP had a feature/extension to compile (to native code) and cache
> the scripts at runtime. This way we could get speeds that are very close
> to PHC and Hiphop. It would be very slow when loading the page for the
> first time but after then it should just blaze. Maybe we will one day
> see something like an NCC (Native Code Compiler) extension for php that
> will replace or complement APC.

Right but keep in mind that most of the time regular PHP scripts are
waiting for I/O operations, like accessing to the network, files or
database servers. So the speed of execution of pure CPU intensive code
like bench.php used in the tests, may not be what matters most to your
sites.

So, often investing in heavily caching your content in files (or
memcached servers for clustered servers) is a much more efficient
solution to handle the load of busy sites. That is mostly what the
PHPClasses sites uses to handle over 2 million page views a month with a
single server.

You may want to read more about that here for more details:

http://www.phpclasses.org/blog/post/66-More-defensive-programming-practices-to-survive-Web-site-traffic-peaks.html

-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux