Lazily registering hooks?

Jelmer Vernooij jelmer at samba.org
Sun May 30 17:35:37 BST 2010


IIRC there was some discussion about this at the recent sprint during
UDS, but I wasn't there for it. 

One of the slowdowns for me in starting up Bazaar is importing the
various modules that the plugins I have installed install hooks in. E.g.
bzr-svn has to load bzrlib.info, bzrlib.diff, bzrlib.send,
bzrlib.filters, bzrlib.version_info_formats.format_rio. 

It'd be great if there was some way to lazily register hooks. I don't
have any good ideas on how to fix that without giving up some of the
benfits that our current infrastructure has (I don't want to centralize
all hooks in a single file). Does anybody else have ideas?

Cheers,

Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20100530/dbbabb4d/attachment.pgp 


More information about the bazaar mailing list