Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Answer: Can Perl remain persistent for scripts just like mod_perl does for apache?

by ichimunki (Priest)
on Dec 30, 2000 at 07:51 UTC ( #48969=note: print w/replies, xml ) Need Help??


in reply to Re: Answer: Can Perl remain persistent for scripts just like mod_perl does for apache?
in thread programs and processes

1) The only time the executable is not already in memory is when you type "perl script.pl". If I do a perl -e 'print "Hello World\n";' from my CLI it responds in an eyeblink. This leads me to believe that the only serious overhead concerns are related to interpretation... hence my suggestion that

2) You can keep a script in memory by using a while loop, or you can set up a controller script that uses the other scripts you want precompiled and starts one of them up on command.

3) Check the FAQ for more information on compiling scripts and reducing the size of your perl executable.
  • Comment on Re: Re: Answer: Can Perl remain persistent for scripts just like mod_perl does for apache?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://48969]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2018-07-16 05:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (332 votes). Check out past polls.

    Notices?