Skip to content

v1.4.4

Choose a tag to compare

@sergi sergi released this 16 Nov 21:24
· 4 commits to master since this release

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.