3 ms·
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
by asgard1024 12y ago
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 12y agoIt isn't necessarily a power of two, since the initial capacity might not be a power of two.