Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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?
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-07-10 23:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls