summaryrefslogtreecommitdiff
path: root/pack.h
diff options
context:
space:
mode:
authorLibravatar Davide Libenzi <davidel@xmailserver.org>2008-11-07 21:24:33 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-11-08 09:28:30 -0800
commit9b28d55401a529ff08c709f42f66e765c93b0a20 (patch)
tree160929221ee2becefe85d95d5828aa91d07233ef /pack.h
parentUpdate draft release notes to 1.6.1 (diff)
downloadtgif-9b28d55401a529ff08c709f42f66e765c93b0a20.tar.xz
xdiff: give up scanning similar lines early
In a corner case of large files whose lines do not match uniquely, the loop to eliminate a line that matches multiple locations adjacent to a run of lines that do not uniquely match wasted too much cycles. Fix this by giving up early after scanning 100 lines in both direction. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack.h')
0 files changed, 0 insertions, 0 deletions