TextDiffAlgorithm Enum
Specifies the algorithm used to compute text differences.
public enum TextDiffAlgorithmFields
| Name | Value | Description |
|---|---|---|
Myers | 0 | Uses Myers shortest-edit-script algorithm. Use this as the default when you want high-quality, minimal edit scripts. |
Patience | 1 | Uses Patience diff. Use this when human readability is more important than strictly minimal edits. |
Histogram | 2 | Uses Histogram diff, favoring low-frequency anchors. Use this when you want good practical performance on large, repetitive texts. |
HuntSzymanski | 3 | Uses Hunt-Szymanski LCS-based diff. Use this when inputs are large and matches are relatively sparse. |