Thursday, August 21st, 2008

The Official Blog of The RGB Daily Team

Sub second response times

So I have been implementing a couple of performance improvements across the codebase.  RGB Daily is written in PHP, CSS/XHTML, and Javascript.  I was able to speed up the performance on the client side by integrating Minify to serve us the CSS and Javascript.  Processing on the server side was still taking around 2-3 seconds on average.  It turns out that the bottleneck was the templating engine.  There was a long standing bug which cleared previously loaded config constants when a new config file was appended. Consequently the main config file that was used in the application was reloaded after every sub module that makes up the page.

I refactored the code so that it only loads a single config file once per template instantiation.  I will go further and cache the parsed config files to get even more speed gains.  Localized files will only cost as much as a simple include.

Updates for 2008-07-16

  • My post using seesmic seems to be corrupted. That’s no good :( #

Updates for 2008-07-02

  • Wrapping up merging the last of the changesets from Moonrank. There is still some work left to be done, but we are almost there. #