Expand description
A fast diff for linear content, particularly lines of text.
This file uses the Wu algorithm, using the wu-diff crate.
Difftastic has the files huge_cpp_1.cpp and huge_cpp_2.cpp in the sample_files directory for a performance stress test. These files are 22 MiB and 590,000 lines.
EnumsΒ§
- Diff
Result π
FunctionsΒ§
- slice πCompute a linear diff between
lhsandrhs. - slice_
by_ πhash Compute a linear diff betweenlhsandrhs, but use hashed values internally. - slice_
unique_ πby_ hash Compute the linear diff betweenlhsandrhs. If there are items that only occur on a single side, mark them as novel without processing them with Myersβ diff.