Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Optimizing Text Offset Calculations
(opens in new tab)
(beeb.li)
2 points
beeb
8mo ago
1 comments
Save
Share
1 comments
1 comments · 1 top-level
top
newest
oldest
beeb
OP
8mo 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.
j
/
k
navigate · click thread line to collapse