We don't bite newbies here... much | |
PerlMonks |
My CGI is slow, but I don't think it's my fault.by jimt (Chaplain) |
on Mar 03, 2007 at 01:33 UTC ( [id://603004]=perlquestion: print w/replies, xml ) | Need Help?? |
jimt has asked for the wisdom of the Perl Monks concerning the following question: For some reason, my website has gotten progressively slower over the last few months. I don't think I've changed anything to yield these results. Here's what I know - the scripts run lightning fast hosted on my local machine. Now, while I love my powerbook dearly, it is, admittedly, not exactly state of the art. Yes, yes, I know that I'm the only one hitting the webserver and I don't need to worry about network latency. I was sure to bring down a fresh database from the live site to be sure to compare identical data. Still. I ran it through Devel::DProf, and got this:
Not too shabby. I can live with that. So then I ran the same thing through Devel::DProf on the hosted site:
Eek. Behold the disastrous slowdown. And now I'm stumped. If my User+System Time were high, then no sweat - slog through the code, find slow things, optimize 'em away. Fun stuff. But this? This is external, and out of my control. Right? So basically, I'm ruling out network problems, database issues, and generally anything in my script and seem to be at a point of blaming my host. FWIW, it's 1&1. So their hardware should be absolutely massive. But what could this be indicative of? Some sort of throttling? Restrictions? Essentially, before I begrudgingly begin the long, annoying path of switching hosts, I want to know if there's something - anything else I could/should be looking at to spare me the pain.
Back to
Seekers of Perl Wisdom
|
|