Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: HTML::Template : How to separate code and html with lesser maintenance issues

by sara2005 (Scribe)
on Nov 21, 2006 at 18:16 UTC ( [id://585321] : note . print w/replies, xml ) Need Help??


in reply to Re: HTML::Template : How to separate code and html with lesser maintenance issues
in thread HTML::Template : How to separate code and html with lesser maintenance issues

Thanks for the info.

But the documentation for HTC says that it could slow down things under certain circumstances, which I don't want. I would rather try to do things with just H::T

The best performance gain is probably reached in applications running under mod_perl, for example. If you don't use memory caching (e.g. CGI environment), HTC will be even slower than H::T. If you don't use caching at all (e.g. CGI environment without file caching), HTC will be much slower than H::T and TT

Replies are listed 'Best First'.
Re^3: HTML::Template : How to separate code and html with lesser maintenance issues
by tinita (Parson) on Nov 22, 2006 at 08:31 UTC
    But the documentation for HTC says that it could slow down things under certain circumstances
    yes, if you are in a CGI environment and you can't use filecaching, for whatever reason.
    but in that case your script will be slow anyway because the interpreter has to start it all over again every request, so the speed difference won't be that big compared to the overall execution time.
    and last but not least, if speed is *that* crucial for you you should switch to mod_perl or FastCGI anyway.