[MERGE] Reorganize TreeTransform inventory delta creation
Aaron Bentley
aaron at aaronbentley.com
Wed Aug 13 04:04:05 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert Collins wrote:
> If self._removed_contents etc are dictionaries, you may find a
> performance improvement by doing
> changed_kind.intersection_update(frozenset(self._new_contents))
> etc
Thanks for the tip. In this case, _inventory_altered doesn't even take
1% of runtime, so it's not worth it.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIok8l0F+nu1YWqI0RAijfAKCFbx/sJXM6Zz9KWllC7JVSnSHWxwCfY29h
PwS2acClHcrrwGYlOXF9Zi0=
=2UrD
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list