in reply to Poor Performance

You need to simplify it to eliminate all the different elements. On the face of it, there's nothing there that should take 10 seconds to return. I'd start by just paring it down to a script which just returned a valid http response. If that's okay, start printing out your css references, then the full formatted page, then load the file. etc...

Good luck :)

Update:

One could argue that you should have done this in the first place. On more than one occasion I've been typing up a question intended for SOPW, trying to create a simple example of what's going wrong. The example ends up being so simple that I solve it myself.

Perlmonks becomes a surrogate for that colleague who you explain stuff to, just so you can figure it out for yourself.

---
my name's not Keith, and I'm not reasonable.

Replies are listed 'Best First'.
Re^2: Poor Performance
by cbrandtbuffalo (Deacon) on Mar 22, 2006 at 14:56 UTC
    I second this approach. Run the script and just output a header and a simple "Hello world" message, then add the bit pulling your header from the file, then add a bit opening and displaying a small, one-line file, then run your current implementation. Those data points will help you zero in on where the performance problem is.

    If you get some information from this approach, you could post back with details.

    Question: Any reason you're not using CGI.pm to print your HTML header?