devxlogo

Facebook Looks to Speed up PHP

Facebook Looks to Speed up PHP

Over the past two years, Facebook’s “HipHop for PHP” has reduced CPU usage on the company’s Web servers by an average of 50 percent. “The project has had a tremendous impact on Facebook. We feel the Web at large can benefit from HipHop, so we are releasing it as open source this evening in hope that it brings a new focus toward scaling large, complex Web sites with PHP,” wrote Haiping Zhao, senior server engineer at Facebook.

He explains, “HipHop programmatically transforms your PHP source code into highly optimized C++ and then uses g++ to compile it. HipHop executes the source code in a semantically equivalent manner and sacrifices some rarely used features — such as eval() — in exchange for improved performance.”

In short, the tool gives developers the programming advantages of PHP with the performance advantages of C++.

View article

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist