On Monday 25 May 2009 11:20:48 Antoine Pitrou wrote: > On May 25, 2:53 am, Jorge Vargas <[email protected]> wrote: > > Now here is the fun fact. I'm sure TG+ all it's dependencies is many > > more LOC than django, someone should count those. > > First, let me say I'm sorry for my original bogus reasoning about > mod_wsgi's daemon mode. > > In any case, besides the LOC count, there seems to be another issue > which is the unconditional loading of all dependencies. Here is the > list of loaded modules (taken from sys.modules) after a simple "import > tg": >
<snip/> > > I'm not sure why all of PIL, genshi, mako, tempita, pygments (!), the > whole paste and tw.core subhierarchies, among others, have to be > loaded like that. And the gain of lazyfying that so that it happens when the first request hits the system would be what? I still don't see the issue - do you actually have *problems* serving a TG app with reasonable speed and scalability? There are costs at initialization, we suffer through these ourselves at our TG2 production site- but as daemon-processes work for a long time, it's neglectable over the course of time. Diez --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

