Memory allocation overhead in C++ | Hacker News Reader