Hacker News new | ask | show | jobs
by teo_zero 255 days ago
> If you reserve() space for 1 more element a 1000 times, you will get ~30 reallocations, not 1000.

Surely you mean ~10 reallocations, because 2^10=1024, right?