Facebook Picks Up Speed

by

It seems that Facebook has been picking up speed since the implementation of a new PHP compiler, with reports indicating as much as an 80% speed increase.

For now, people are just hoping Facebook open sources its new PHP arrangement...

Word of the new, internally developed PHP compiler comes via ReadWriteWeb, which indicates that Facebook has “rewritten the PHP runtime from scratch,” resulting in that nice 80% bump. While all of this is still technically unofficial, it’s been confirmed by a fairly wide array of different sources, so it’s being treated as “all but announced” for now.

The whole thing might be a little foreign to those who aren’t familiar with the ins-and-outs of PHP. The reason a new compiler makes such a big difference is that PHP is an interpreted language, which basically means that every time a user views the page, there’s some calculation on the server side to take that code, interpret it and then spit out the page that the user is looking for.

The folks from ReadWriteWeb managed to get a quite from OpenDNS’s Richard Crowley, who said of the new compiler,

“Compiling PHP to code a CPU can directly execute certainly has performance implications. It would be silly to alter the workflow to be more like C or C++ by doing all parsing and compilation ahead of time. At the other end of the spectrum, it’s slow and out-of-fashion to interpret every statement within the runtime. A JIT (Just In Time) compiler compiles frequently executed portions of the program to machine code for speed while maintaining the flexibility of interpreted code.”

If that was over anyone else’s head then I guess we’re all in the same boat there, but the upshot of all of this is that we can expect Facebook to start behaving an awful lot more quickly.

Advertisements

Tags: , , , , , , , , , , ,

One Response to “Facebook Picks Up Speed”

  1. Kevin Says:

    Interesting that they didn’t develop their own systems. It’s even more interesting that they didn’t use a PHP front-end and a Java or Flex back-end to handle server-side muck-about-ery.

    I get the feeling that perhaps Facebook’s back-end is infinitely more complex then it needs to be 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: