Hi Chris,

On Tue, 2 Mar 2004, Chris Ochs wrote:

> Duh, I should have known that, been looking at this code to long.
> 
> Is there that much overhead in calling the new method on say 10 different
> modules before processing the template, if the new methods are all just like
> this?

Very little compared to TT itself.

> Or how about having one top level module that has an autoload function that
> then determines what class/method is being called and dispatches it
> accordingly?  Would that be more or less efficient?

Autoload is probably a lot slower than calling the new method you
outlined. Which route you go probably depends a lot on what you're trying 
to achieve. Why are you needing to delay the creation of your objects ?

S.



_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to