Facebook revealed that the PHP program of the HipHop project was greatly accelerated. High programming efficiency is the biggest feature of PHP, but as a script language, there has always been a problem of low CPU and memory usage efficiency until the emergence of hiptoo forphp. Facebook's mysterious high PH programming efficiency is the biggest feature of the PHP language, but as a script language, there has been a problem with low CPU and memory usage efficiency until the emergence of HipHop for PHP. Facebook's mysterious PHP project HipHop for PHP was unveiled. This project consists of a conversion program from PHP to C ++, a re-implemented PHP runtime library, and many frequently used PHP extensions to rewrite the version. it aims to accelerate and optimize PHP.
Zhao Haiping, project leader at the official Facebook blog (not directly accessible), said that the HipHop project has a huge impact on Facebook, in the words of his Ph.D. in computer science at Princeton, the 1987. It currently supports 90% of Facebook's Web traffic. Because of HipHop, the average CPU usage on Facebook Web servers is reduced by 50%, which greatly reduces the server requirements. To make this improvement benefit the community, they decided to make it open-source, hoping to further help improve the scalability of more large and complex PHP websites.
PHP and Facebook problems
As we all know, Facebook's front-end is mainly written in PHP. Zhao Haiping said that in the past six years, Facebook
For PHP. Facebook's mysterious PH...