Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah, I'm also not sure what the author is talking about, std::vec also does amortized allocation and never shrinks. There are a bevy of more complicated vector classes in Rust if you need different behaviors, but off the top of my head I don't know why std::vec wouldn't work here.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: