[RFC] question about different behavior of WorkingTree.iter_changes
Aaron Bentley
aaron at aaronbentley.com
Sat Apr 12 18:35:41 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alexander Belchenko wrote:
> Can you shed some light why you said:
>
> "id2path is a surprisingly expensive operation, and if you're doing it
> repeatedly, it's best to do something else instead."
I think my advice is a bit out-of-date. I remember that it used to be
expensive to hit id2path for every path in the tree for inventory-based
trees, like RevisionTrees. For dirstate-based trees, I guess
tree.id2path very efficient. Sorry for any time of yours that I've wasted.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIAPLs0F+nu1YWqI0RAscoAKCCmFh/h1ifvMRNcryxdq48atNBLgCeIfBW
VI5r8y/accGBbeJXvGnZBWM=
=LBmw
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list