Bradley Baetz wrote:
> File::Temp takes quite a while to load - just less than 200ms, or 30-40%
> of the time taken to |use Template| on my PIII-500. The attached patch
> changes Template::Document to require File::Temp only when needed, meaning
> that for compiled templates its never loaded at all.
> 
> (yes, I know I should be using mod_perl. Thats not an option ATM for
> various reasons)

People who are using mod_perl and expect File::Temp to be used will want 
to load it in startup.pl if it is lazy-loaded in Template::Document.  I 
actually found several TT modules that were not loaded until run-time, 
and adding them to startup.pl improved memory sharing under mod_perl 
noticeably.

- Perrin


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates

Reply via email to