[MERGE] Make merge more than 2x faster

Aaron Bentley aaron.bentley at utoronto.ca
Thu Jul 12 20:37:13 BST 2007


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

Hi all,

This patch improves the speed of merge by
- - avoiding a pointless round of conflict detection
- - avoiding duplicate_entry detection when no files have been added
- - avoiding checking whether the base revision is an ancestor if it was
  selected via least-common-ancestor
- - using set_parent_trees instead of add_parent
- - using dirstate revision trees where possible
- - caching revision trees for later use

Combined, for my example, they reduce total execution time from ~3.2
seconds to ~1.5 seconds.

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

iD8DBQFGloLp0F+nu1YWqI0RAiUgAJ93Fq4ExaV8Rgb6Wiu+33EQvab+iACdHEV0
6un6ilT5KeQQLOewS76U+Fo=
=Ml4T
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fast-merge.patch
Type: text/x-patch
Size: 79520 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070712/8302d13c/attachment-0001.bin 


More information about the bazaar mailing list