Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
maxbrunsfeld
· 2y ago · 0 comments
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.
Comments
[–]
makapuf
2y ago
Yup, you can even pre-allocate a given vec capacity to not start zero-sized.