[MERGE] Avoid unnecessarily resolving lazy objects in Registry.get_prefix().

John Arbash Meinel john at arbash-meinel.com
Thu Feb 12 14:54:47 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jelmer Vernooij wrote:
> This patch makes Registry.get_prefix() not load objects until it has found a 
> key that matches. Registry.get_prefix() is used by the directory services code,
> which because of this currently loads all registered directory services, even 
> if they are not used. 
> 
> On my system, this means not having to always load some parts of the launchpad 
> and builddeb plugins including their dependencies (xmlrpc, apt_pkg).
> 
> Cheers,
> 
> Jelmer
> 

BB:approve

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmUODcACgkQJdeBCYSNAAOrXQCfYZxcrANphF5Nu0NspZjnXZX2
ymoAoJoqTJRvaEXJ0rxkC2pA+xce4xt9
=xfVk
-----END PGP SIGNATURE-----



More information about the bazaar mailing list