Closed crimsonhawk47 closed 2 years ago
The code is correct. The README is incorrect. Thank you for pointing it out.
We have changed the definition of the diff size to reflect the actual size (i.e. the number of nodes in the diff data structure) of the diff. In this particular case, replacing the whole thing has smaller size, just 9, whereas the old diff size was 26. So optimal change is to replace it, for the replacement is very small.
Using 0.5.8
The Readme shows this:
However, diffing
a
andb
on my system just produces this EditScript.The quick algo produces the expected result, but every time I diff lists with the A* algorithm, I get just a big replacement of the entire structure