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.

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2018-03-18 07:04 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (228 votes). Check out past polls.