Optimizing Text Offset Calculations
1 points
by beeb
8 hours ago
| 1 comment
| beeb.li
| HN
beeb
8 hours ago
[-]
A tale of optimization for an algorithm that turns byte offsets into line and column numbers, and UTF-16 offsets. The final implementation leverages SIMD and fixes several inefficiencies in the original solution.
reply