On Thursday 16 February 2006 05:23 pm, Jonathan Vanasco wrote: > On Feb 16, 2006, at 4:20 PM, Perrin Harkins wrote:
> > Probably slower. TT and Mason don't need to do any regexes because > > they have compiled the template to a perl sub. They don't have to parse > > the template at all after the first request in each process. Mason also caches the parsed template the first time it loads a component (or after it changes) so whilst it still has to compile the perl for each process, it doesn't have to translate the template. > i've found that most templating systems take an awful performance hit > when they compile the templates into perl subs. it would be nice if > every engine had a flag that let you specify if the template was > precompiled or not, and came with a tool to recursively precompile > template directories. but i can wait the extra 3 seconds on startup. You can do that with Mason I believe. (I haven't myself as generally the template->perl on first access is sufficient for me). You could probably write something to preload them all too.