top | item 41947821

(no title)

maxbrunsfeld | 1 year 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.

discuss

order

makapuf|1 year ago

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