Wednesday, February 3, 2010

HipHop for PHP project from Facebook

Today, Facebook shared one of its cool project - HipHop for PHP. Over 90 percent of Facebook servers are now using HipHop as the project opens to the community, promising better performance and scalability.

What is the use?
HipHop can reduce the CPU usage at the server even by 50% depending on the page executing PHP code. Reducing the overhead this way, it can help in scaling complex PHP websites. As per Facebook latest news, HipHop has shown incredible results for Facebook.

How does It optimize?
HipHop doesn't work like a compiler technically, instead 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. HipHop includes a code transformer, a reimplementation of PHP's runtime system, and a rewrite of many common PHP Extensions to take advantage of these performance optimizations.

It's not complete yet, but beta software can be tried before trying it out. I need to still try it out.

Some useful links:

No comments:

LinkWithin

Related Posts with Thumbnails