Hacker News new | past | comments | ask | show | jobs | submit login

You can avoid the memory leak without adding too much complexity by just making it a circular buffer:

https://en.wikipedia.org/wiki/Circular_buffer




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: