TextDiffAlgorithm Enum

Specifies the algorithm used to compute text differences.

public enum TextDiffAlgorithm

Fields

NameValueDescription
Myers0Uses Myers shortest-edit-script algorithm. Use this as the default when you want high-quality, minimal edit scripts.
Patience1Uses Patience diff. Use this when human readability is more important than strictly minimal edits.
Histogram2Uses Histogram diff, favoring low-frequency anchors. Use this when you want good practical performance on large, repetitive texts.
HuntSzymanski3Uses Hunt-Szymanski LCS-based diff. Use this when inputs are large and matches are relatively sparse.