Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Diff without asking xdiff for a minimal result
XDF_NEED_MINIMAL turns off the cost limit in xdiff, so a file whose lines were reordered took time quadratic in its length. Such a file of 40,000 lines took 2.1 s and now takes 38 ms. Git leaves it off by default as well.
-rw-r--r--source/shared.c4
1 file changed, 3 insertions, 1 deletion