On May 11, 2007, at 3:41 PM, kerinin wrote:

>
> I did - i'm getting 5 minute load times almost exclusively as a result
> of Kid.  The site is almost all widget based, so without refactoring
> to remove the widgets I can't really tell how much is just Kid being
> slow and how much is the widgets being slow.

I'm not sure what you mean by "load times"...  is the time taken to  
actually load the app? (import time). If this is the case then moving  
to plain templates would probably help since TG widgets compile their  
templates when the widget class is built if the template is being set  
as a class attribute. In this case I think it might be easier to  
change this behaviour in the the widget code so that it lazy-compiles  
them, specially if there are many widgets you need to "port". I'll  
try to get a go at fixing that, would you mind opening a ticket for  
it  :)

However, if you're measuring the actual time it takes to render a  
page (request time) then I doubt the overhead introduced by widgets  
is significant, specially if profiling says that most time is being  
spent inside kid functions.

Alberto

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to