Repository navigation
v1.4.4
Performance:
- PatchSplitMax is up to 50x faster on large patches: it now reads only the few bytes of trailing context it needs instead of rebuilding the remaining patch text for every piece.
- MatchBitap, and so fuzzy matching in MatchMain and PatchApply, is about 2x faster thanks to an array lookup in its inner loop.
- PatchFromText is about 20% faster: the header regex is compiled once and each header is matched once.
- Line-mode diffs of large texts allocate about half as much memory and run up to 39% faster, because the line tables are sized up front.
No API or behavior changes. New benchmarks cover MatchBitap, PatchFromText, PatchApply and PatchSplitMax.