RFC: startup time - again
Andrew Bennetts
andrew at canonical.com
Wed Sep 10 06:04:51 BST 2008
John Arbash Meinel wrote:
[...]
>
> Sure, except if we can cut off an unnecessary dependency (like what is
> ConfigObj using 'compiler' for, and can we get rid of that?)
ConfigObj uses the compiler module for its “unrepr” mode, which we don't use.
If you just delete the import everything works fine for us. My faster-startup
branch does this.
> Big wins in the past have been lazy importing "bzrlib.gpg" because it depended
> on 'subprocess' which pulled in pickle and all sorts of things. Even though
> 'repository' only used it when committing with "sign = True".
>
> So I agree that we shouldn't be optimizing for avoiding 'import
> bzrlib.workingtree' it is the next layer of imports we need to work on.
Agreed.
-Andrew.
More information about the bazaar
mailing list