Skip dead zones in FuzzyMatchV2 score matrix computation
Before adoption: this commit came in with the history the project adopted, so no landing records it.
In Phase 3 of FuzzyMatchV2, when a cell's left neighbor score is <= 1 and the current character doesn't match the pattern character, the cell's score is guaranteed to be 0 (since gap penalties are -1 and -3). Skip the bonus/gap computation entirely and fast-forward through consecutive non-matching characters in the dead zone. This yields 6-11% faster fuzzy searches on typical workloads.
authored by Junegunn Choi · committed by Junegunn Choi · parent 09ca45f · Browse files · 1 file+21 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+21 added−1 removed
- other:+21 added−1 removed