Hacker News new | ask | show | jobs
by ComputerGuru 1666 days ago
> my personal guideline is to always allocate reasonable capacity on construction rather than on first insertion.

That works until probabilistically there is a decent chance the capacity will always be zero.