summaryrefslogtreecommitdiff
path: root/t/t8001-annotate.sh
diff options
context:
space:
mode:
authorLibravatar David Turner <dturner@twopensource.com>2016-01-22 14:58:43 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-01-22 13:03:10 -0800
commita6720955f19ea10bf9569d04480deed25b1bccf7 (patch)
treea1278d3dd1d02f69605e3d123cca6929fa9462a5 /t/t8001-annotate.sh
parentdo_compare_entry: use already-computed path (diff)
downloadtgif-a6720955f19ea10bf9569d04480deed25b1bccf7.tar.xz
unpack-trees: fix accidentally quadratic behavior
While unpacking trees (e.g. during git checkout), when we hit a cache entry that's past and outside our path, we cut off iteration. This provides about a 45% speedup on git checkout between master and master^20000 on Twitter's monorepo. Speedup in general will depend on repostitory structure, number of changes, and packfile packing decisions. Signed-off-by: David Turner <dturner@twopensource.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t8001-annotate.sh')
0 files changed, 0 insertions, 0 deletions