[Templates] [PATCH] lazily load File::Temp

Mark Fowler mark@twoshortplanks.com
Fri, 1 Nov 2002 18:14:31 +0000 (GMT)


On Fri, 1 Nov 2002, Andy Wardley wrote:

> Mark Fowler wrote:
> > Hmm, looks like we could do with a bit of work on automagically preloading 
> > the right things at the right time, if it's possbile.  
> 
>   Template::Config->preload() if $ENV{ MOD_PERL };

Isn't this true even if we've already forked?  Doing this after we've 
forked is quite bad...you'll eat vast chunks of memory (depending on how 
many child processes you have running.)

Of course, I could be wrong about this...

Mark.

-- 
s''  Mark Fowler                                     London.pm   Bath.pm
     http://www.twoshortplanks.com/              mark@twoshortplanks.com
';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/  +/
){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}