I couldn't really find the answer I was looking for by search the archives, so I thought I would simply ask..
 
I'm getting into the habit of making a single TMPL file (or new single HT object) in which I will have anywhere from 3 to 5 different pages in it, each within its own template if.
Quite often there is redundancy within the template if's and I'm ultimately only displaying one of the template ifs...
 
From a performance standpoint, how bad is this?
Is it costly enough that I really shouldn't be doing it?
If it is a problem, is it because it increases the overall size of the tmpl file? Or is it because I might be setting multiple tmpl_var's,tmpl_loop's etc 2 or 3 times within the template when I only needed to do it once?
 
Everything is under mod_perl and I cache the templates, if that makes any difference.
 
I know I could probably use benchmark to do some tests, but I figured I'd try the list first.
 
TIA
-Chris

Reply via email to