Results 1 to 9 of 9

Thread: Rasmus Lerdorf on PHP Performance

  1. #1
    t31os's Avatar
    t31os is offline Hello World
    Join Date
    Feb 2010
    Location
    UK
    Posts
    23

    Default Rasmus Lerdorf on PHP Performance

    I've just watched this video today by chance and found it very interesting, Rasmus uses WordPress in alot of his demonstrations and it's interesting to see his suggestions on optimizing code for performance.

    http://about.digg.com/blog/rasmus-le...hp-performance

    Video is just over an hour long, but if you're interested in both PHP and WordPress it's an interesting watch.

  2. #2
    Ryan's Avatar
    Ryan is offline WordPress Legend
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    2,797

    Default

    He didn't seem to impressed about the WordPress code quality.

    Interesting to hear that using Hip Hop makes very little difference to site performance. I assumed it made a huge difference, maybe 100% performance improvement, but his tests indicated that the difference was very minor.

  3. #3
    mfields's Avatar
    mfields is offline Here For The Peanuts
    Join Date
    Nov 2009
    Location
    Portland, OR
    Posts
    168

    Default

    @Ryan, I think he illustrated that HipHop did in fact make a huge difference.

  4. #4
    Ryan's Avatar
    Ryan is offline WordPress Legend
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    2,797

    Default

    I guess that depends on how you define "huge". I was expecting much bigger performance increases than that.

  5. #5
    Otto's Avatar
    Otto is offline On The Rocks
    Join Date
    Apr 2009
    Location
    Memphis, TN
    Posts
    862

    Default

    I've had discussions about this with FB people. HipHop is clever, but the thing is, with modern systems and with some of the enhancements made by the PHP team, it doesn't really help a whole heck of a lot to compile to native code. It does indeed help, but unless you're running a site with the traffic of FB, your initial performance improvements will be better if you focus elsewhere.

    WP does need a lot of optimization. Once we switch to PHP 5.x, we can do those way more easily.

    Like everything else, performance is relative to your specific situation.

  6. #6
    Ryan's Avatar
    Ryan is offline WordPress Legend
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    2,797

    Default

    Good to know that HipHop isn't worth worrying about for us unwashed masses. I'd rather not have another thing to worry about before launching a site.

    Some of the WordPress issues mentioned in that presentation seem like they were presented as errors in the software, but they're more like intentional features that have been added in full knowledge that there will be a slight performance hit. Things like doing checks for which database type to use etc.

  7. #7
    t31os's Avatar
    t31os is offline Hello World
    Join Date
    Feb 2010
    Location
    UK
    Posts
    23

    Default

    I thought the presentation was rather interesting and that WordPress did quite good on the whole (if it were poorly written i'd have expected more obvious optimization examples in the presentation).

    Rasmus also did a very similar presentation at DrupalCon and it didn't do quite as well as WordPress, though not miles apart, you can find the video for that here.

    http://vimeo.com/14445227

    Or alternatively here
    http://drupalradar.com/video-rasmus-...note-drupalcon

  8. #8
    mfields's Avatar
    mfields is offline Here For The Peanuts
    Join Date
    Nov 2009
    Location
    Portland, OR
    Posts
    168

    Default

    @Ryan. Maybe I'm wrong (or just making an assumption) but it appeared to me that Rasmus made a couple optimizations before running Hip Hop. These optimizations had a rather larege impact on performance. I think that maybe this is why Hip Hop appears to have had little impact on the optimization routine. Just guessing here, but it reminds me of zipping a .jpeg file -> Sure you'll save a few k but a jpeg is already optimized - so zipping it doesn't really save much. However, if you zip a .tiff - you'll save a ton of space.

    Really don't know if this is the best analogy here all I would like to communicate is that it would be interesting to see what Hip Hop would do if applied as the only optimization.

    One of the parts that I found really interesting was Hip Hop's ability to recognize flaws that allude the php parser.

  9. #9
    hakre's Avatar
    hakre is offline Here For The Peanuts
    Join Date
    Jun 2010
    Posts
    129

    Default

    Big Thanks for sharing! Nice pick, still watching ... .
    hakre on wordpress (clicking this all three minutes help to keep the cache fresh - thanks)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •