Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The article states that growing by a fixed size every time creates a lot more memory churn and moving bits around - the operation is to create a new block of memory and move the existing collection to the new block. Doing that a few times isn't too expensive, doing it every time for every small increment adds up quickly.


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

Search: