[Zope3-dev] Re: Google SoC Project

Jim Fulton jim at zope.com
Fri May 12 08:38:16 EDT 2006


Lennart Regebro wrote:
> On 5/9/06, Jim Fulton <jim at zope.com> wrote:
> 
>> - Speed up restart.  I think there are a lot of ways that restarts
>>    can be made faster:
> 
> [...]
> 
>>    o Load less.  A Zope 3 application that only loads what it actually
>>      uses will load much more quickly than a full Zope 3 checkout.
> 
> 
> Just a brainstormy idea:
> 
> One thing I like with Python imports which ZCML doesn't do, is that it
> only loads things that really are imported.

I don't understand this.  ZCML doesn't get magically loaded unless it
is explicitly included.  ZCML directives only load modules they refer
to.

> Maybe there could be a way
> to say which products you depend on in ZCML, and only load the ZCML of
> these? Kinda like a zcml-import, but not creating problems if you
> import it twice?

There is. It's called "include".

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the Zope3-dev mailing list