How to optimize code using dirty bits | Hacker News Reader