http://www.perlmonks.org?node_id=409035


in reply to When to use templates?

BTW, trying to figure out the reason of your question I can say that templates usually DO NOT impose any performance overhead at all. You won't lose anything. Most of the time, templated output will even speed you up by itself, because there's buffering, there's precompiling and all that staff.

Replies are listed 'Best First'.
Re^2: When to use templates?
by kidd (Curate) on Nov 19, 2004 at 16:22 UTC
    You are right, that was my main concern. That by using templates I would get a hit in perfomance. Specially when using CGI's that generate dynamic content. Thanks


    If your a spanish spoken programmer go to my site: Perl en Espaņol
Re^2: When to use templates?
by itub (Priest) on Nov 19, 2004 at 20:26 UTC
    I've found that using TT does impose an overhead on CGI scripts, because every time the TT modules have to be recompiled, etc, which might take around 0.2 s (depends on the machine). But if you use mod_perl or speedycgi there is no problem.