rljacobson / Levenshtein

A Blazingly Fast Damerau–Levenshtein Edit Distance Function (UDF) for MySQL
MIT License
24 stars 3 forks source link

Investigate if SIMD provides any advantage worth doing. #1

Open rljacobson opened 5 years ago

rljacobson commented 5 years ago

The Wagner-Fischer algorithm uses a matrix that is easily small enough to fit into an AVX2 register for many applications. An algorithm using AVX2 instructions would be interesting. However, it's not clear that we would see significant performance gains over the current optimized serial algorithm. I speculate that, at this point, there is more time spent in overhead than there is spent computing the edit distance.