[MERGE] Diff now emits files in alphabetical order

Aaron Bentley aaron.bentley at utoronto.ca
Tue Dec 18 04:16:30 GMT 2007


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

Hi all,

Here's an update to diff that causes it to emit files in alphabetical
order, instead of grouping them by change kind.

The performance difference seems negligible:

Old: (best of 3)
real    0m3.421s
user    0m3.172s
sys     0m0.192s

New: (best of 3)
real    0m3.622s
user    0m3.256s
sys     0m0.236s

So the new version is 1.05x slower than as the old version.  But since
it uses iter_changes directly, it also opens the door to further
performance enhancements.

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

iD8DBQFHZ0md0F+nu1YWqI0RAmzTAJ0Q2c+k8QuaJWu67MNvUQb01PBT2QCePTiz
d9m1+9Sz7LEJYOVVN5zArhs=
=RFcn
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alpha-diff.patch
Type: text/x-diff
Size: 8692 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071217/3c80db31/attachment.bin 


More information about the bazaar mailing list