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

Re: When to use templates?

by kappa (Chaplain)
on Nov 19, 2004 at 16:15 UTC ( #409035=note: print w/ replies, xml ) Need Help??

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.

Comment on Re: When to use templates?
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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://409035]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2015-10-06 23:50 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (164 votes), past polls