On 10/30/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote: > > On Oct 30, 2006, at 5:46 AM, Steve Holden wrote: > > > > > Is it just me, or does CherryPy take a *really* long time to start up > > and restart? > > It's not you (and I don't think it's CherryPy). We've got a lot of > code that gets imported when you "import turbogears". I've been > thinking about ways to deal with that, but I'm not sure if it can be > done in a backwards-compatible manner. And, of course, the more of TG > that you use, the more that your app will need to import at startup > time. > > At times, I have thought about some pretty radical solutions to this > problem, because it's one that I'd like to see fixed. However, I > should note that my own development tends to be partly shielded from > this because I do test driven development and run my tests more often > than update code on a running server process. > > Kevin
You've probably already heard of it, but bazaar (bzr) is using "lazy imports" to improve startup time. The latest release, 0.12, cut startup time by 50%. (Beware though, it's GPL code.... ;) ) -matt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

