summaryrefslogtreecommitdiff
path: root/merge-tree.c
diff options
context:
space:
mode:
authorLibravatar Linus Torvalds <torvalds@linux-foundation.org>2007-08-10 12:53:51 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2007-08-10 23:02:14 -0700
commit566b5c057c452d04605805ea2f7af210c6fb9b59 (patch)
tree61191e80bae32d7f74fb433fc2a6f74d145162c3 /merge-tree.c
parentFix filehandle leak in "git branch -D" (diff)
downloadtgif-566b5c057c452d04605805ea2f7af210c6fb9b59.tar.xz
Optimize the three-way merge of git-read-tree
As mentioned, the three-way case *should* be as trivial as the following. It passes all the tests, and I verified that a conflicting merge in the 100,000 file horror-case merged correctly (with the conflict markers) in 0.687 seconds with this, so it works, but I'm lazy and somebody else should double-check it [jc: followed all three-way merge codepaths and verified it removes when it should]. Without this patch, the merge took 8.355 seconds, so this patch really does make a huge difference for merge performance with lots and lots of files, and we're not talking percentages, we're talking orders-of-magnitude differences! Now "unpack_trees()" is just fast enough that we don't need to avoid it (although it's probably still a good idea to eventually convert it to use the traverse_trees() infrastructure some day - just to avoid having extraneous tree traversal functions). Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'merge-tree.c')
0 files changed, 0 insertions, 0 deletions