All the latest UK technology news, reviews and analysis

Facebook reworks PHP for speedier servers

by Iain Thomson

More from this author

03 Feb 2010

Be the first to comment

  • Tweet this
Facebook
Facebook claims to have halved the processor load of running web pages

Facebook has built a new Hypertext Preprocessor (PHP) platform dubbed HipHop, which it claims will dramatically increase the speed and scalability of its systems.

Senior Facebook engineer Haiping Zhao said in a blog post that the company had been developing HipHop for two years, and had halved the processor load of running web pages.

"HipHop allows us to keep the best aspects of PHP while taking advantage of the performance benefits of C++," he said.

"We have written over 300,000 lines of code and [performed] more than 5,000 unit tests. All of this will be released this evening on GitHub under the open source PHP licence."

HipHop translates PHP source code into C++ and uses G++ to compile it. As C++ is much faster and more efficient at handling code, the whole system has a much lower overhead.

Facebook has also developed an interpreter called HPHPi which frees PHP developers from compiling code before running it. Zhao said that this had helped Facebook engineers find bugs, and to keep writing code in their usual style.

The company is now running more than 90 per cent of its production server operations using HipHop, and is hoping that the system gains other high-profile users.

Facebook has produced a video about HipHop for PHP.

Do you agree?

 

Add your comment

We won't publish your address
By submitting a comment you agree to abide by our Terms & Conditions. Your comment will be moderated before publication.

Poll

IT priorities for 2012

What is the most important IT priority for your company this year?

97%

1%

1%

0%

1%

Connect with V3.co.uk

Sign up to our daily or weekly newsletters

Accurev

Top 5 software development challenges

This paper focuses on a series of best practices and techniques for development teams looking to improve their software development processes

Talend

Rubbish in, rubbish enterprise

Why good data management at all levels is essential in the modern business (video, 6mins)

QA Engineer Uk to £35k

Roc Search (ISEB, Automation, QA, Agile, Manual, Automation...

Security Developer- Tim/Tam- Norwich-Tivoli,Java/J2EE

My Client is a reputable WORLD WIDE Systems Integrator...

Security Developer- Tim/Tam- Dorking-Tivoli,Java/J2EE

My Client is a reputable WORLD WIDE Systems Integrator...

API Support Developer-Chertsey 50k Java, .Net, API

My Client is a well funded specialist in delivering secure...

To send to more than one email address, simply separate each address with a comma.