High programming efficiency is the biggest feature of PHP, but as a script language, there is always a problem of 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, Princeton, 1987 Institute. 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