Hacker News new | ask | show | jobs
by maxbrunsfeld 607 days ago
I had the same question. I would think that with rust’s Vec, no allocation would occur at steady state. Vec does not automatically resize when removing elements.
1 comments

Yup, you can even pre-allocate a given vec capacity to not start zero-sized.