Harder, Better, Faster, Stronger
Posted on 23rd July 2008
I should really have expected that interest to my site would hit overload last night, but I had thought it would cope. Unfortunately it meant I was sitting on the box, watching when the load average got too high and shutting down processes. As a result I did some quick profiling of the code using the lovely Devel::DProf, and spotted a few calls that were compelely unncessary, both as function calls and database calls. So I've quickly reworked some of the requests, and on my test machine the requests are now being processed in roughly 0.8 seconds rather than 1.6 seconds. Result!
It often takes something like being popular for you to actually take a second look at the performance of your site. Thankfully in my case, the changes are relatively minor, and have made significant improvements. I shall now be taking a better look at a few other sites I run soon, as I'm sure there are similar quick hit improvements I can make.
Comments
No Comments