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

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..


It isn't necessarily a power of two, since the initial capacity might not be a power of two.




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

Search: