NameDateSize

..11-Mar-202490

.gitignoreH A D11-Mar-2024150

compat/H11-Mar-20249

diff/H11-Mar-20245

diff-version.mkH A D11-Mar-2024161

include/H11-Mar-20245

lib/H03-May-202413

LICENCEH A D11-Mar-2024758

man/H11-Mar-20243

READMEH A D11-Mar-20241.1 KiB

test/H11-Mar-2024138

README

1This is a collection of diff algorithms, to test various combinations.
2
3The initial aim was to provide a faster diff implementation for got
4(gameoftrees.org) with a BSD license, at the u2k20 OpenBSD hackathon.
5A side effect could be improving OpenBSD's /usr/bin/diff utility.
6
7At the time of writing, this is little more than a playground / benchmark basis
8/ diff algorithm analysis platform. What could be done:
9- add profiling and test series to rate diff algorithm combinations.
10- interface with / merge into got.
11
12The Myers and Patience Diff algorithm implementations found here are based on
13the explanations found in these blog post series:
14  https://blog.jcoglan.com/2017/02/12/the-myers-diff-algorithm-part-1/ ff.
15and
16  https://blog.jcoglan.com/2017/09/19/the-patience-diff-algorithm/ ff.
17-- possibly the single most comprehensive explanations of these algorithms.
18Many thanks for this valuable door opener!
19The source code itself is not based on the code found in those blogs, but
20written from scratch with the knowledge gained.
21
22Compile:
23  make -C diff
24
25Test:
26  make -C test/
27