> Stas Bekman <[EMAIL PROTECTED]> writes:
>
>
> > I think it doesn't matter whether it's a script or a module.
>
> So if startup.pl contains:
>
> use CGI ;
> use DBI ;
> use My::Application ;
>
> Then there's no gain?
Of course there is!
I'm talking about a completely diffent thing. Let me repeat this again.
Spawning of the child process has almost nothing to do with code. When the
process is spawned it's memory pages are _shared_ with parents, and the
child process has almost no pages on its own.
And something new:
The only thing that can add an overhead to the time when the process is
ready to serve the first process is if there is any code that was
registered to run at the ChildInit phase. Therefore it's quite possible
that the new processes will get ready to serve in a much slower rate if
there is some delay imposed by the code in ChildInit phase. Think about
connect_on_init which might take a few seconds to complete for if there is
some problem. This call blocks the the desire of the mod_perl soldier to
go into the battle field :0
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://perl.org http://stason.org/TULARC
http://singlesheaven.com http://perlmonth.com http://sourcegarden.org