Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
Optimizing Text Offset Calculations | Better HN
Optimizing Text Offset Calculations
(opens in new tab)
(beeb.li)
2 points
beeb
5mo ago
1 comments
Share
1 comments
default
newest
oldest
beeb
OP
5mo 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