Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Poor Performance

by reasonablekeith (Deacon)
on Mar 22, 2006 at 11:42 UTC ( [id://538472]=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://538472]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-25 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found