Re:Please grow your buffers exponentially
by Cthulhu_ on Tuesday November 04, 2014 @05:42AM
(#8555916)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.