performance heads up...path2id

Aaron Bentley aaron.bentley at utoronto.ca
Mon May 22 05:33:36 BST 2006


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

Robert Collins wrote:
| Quite a bit of code uses 'path2id' routinely. This is a heads up - our
| current datastructure makes that call relatively expensive - we split
| the path and then walk the tree. Where possible, if you are doing loops
| over trees or the like, try to use id's more often, or get and hold the
| inventory entry of the file you are manipulating rather than looking it
| up afresh each time.

Yes, I knew that, but I was trying to avoid premature optimization.  I
guess we've gotten to the point that it's not premature anymore.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEcT8g0F+nu1YWqI0RAs34AJ9TUBq8s1+/isXaNK0Bd3YudKEysgCeKTh8
tmEJQP7Fn4vds3fuIv9/V+0=
=ahuQ
-----END PGP SIGNATURE-----




More information about the bazaar mailing list