Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
asgard1024
on Nov 4, 2014
|
parent
|
context
|
favorite
| on:
Please grow your buffers exponentially
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..
Dewie
on Nov 4, 2014
[–]
It isn't necessarily a power of two, since the initial capacity might not be a power of two.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: