News for hackers. Stuff that matters.
Re:Please grow your buffers exponentially by asgard1024 on Tuesday November 04, 2014 @05:01AM (#8555787)
While I agree with the gist of the article, is the recommendation to use powers of 2 as the size correct? Every allocator adds a small overhead to the size, so one could be better off by using sizes like 2^n - 16 or so..
Re:Please grow your buffers exponentially by Dewie on Tuesday November 04, 2014 @06:47AM (#8556072)
It isn't necessarily a power of two, since the initial capacity might not be a power of two.