Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Improving PERL Performance

by dws (Chancellor)
on Jun 26, 2005 at 15:46 UTC ( #470042=note: print w/replies, xml ) Need Help??

in reply to Improving PERL Performance

Under mod_perl, the perl code gets loaded once, and lives for the lifetime of the Apache handler process. (Apache forks off several children for handling requests). That is, the time it takes to load modules is a one-time hit.

I seriously doubt that you're going to find a measurable difference by splitting common code into a .pl (or .pm) that both scripts load, unless you're doing something that kills the handler process. When the handler dies, Apache/mod_perl has to set up a new one from scratch.

Still, benchmarking is the way to prove this. Even if there's not any difference, it's a good skill to have within reach.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2020-10-27 18:40 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (257 votes). Check out past polls.