summaryrefslogtreecommitdiff
path: root/xdiff/xdiffi.h
diff options
context:
space:
mode:
authorDavide Libenzi <davidel@xmailserver.org>2008-11-08 05:24:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-12-03 07:45:37 (GMT)
commit733070bea9ce28d557f0b0950acc05b3fe6ff6c6 (patch)
tree4bfc97b38f65e30f28ac296a392d1cf85b36313a /xdiff/xdiffi.h
parent0fd9d7e66deb7071da2a568b96c94f94ee890908 (diff)
downloadgit-733070bea9ce28d557f0b0950acc05b3fe6ff6c6.zip
git-733070bea9ce28d557f0b0950acc05b3fe6ff6c6.tar.gz
git-733070bea9ce28d557f0b0950acc05b3fe6ff6c6.tar.bz2
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 'xdiff/xdiffi.h')
0 files changed, 0 insertions, 0 deletions