Optimizing Text Offset Calculations | Hacker News Reader