3 ms·
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
by maxbrunsfeld 2y 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.
- makapuf 2y agoYup, you can even pre-allocate a given vec capacity to not start zero-sized.