Gobbel2000@programming.devtoTechnology@lemmy.world•I watched Nvidia's Computex 2024 keynote and it made my blood run coldEnglish
6·
4 months agoTHE MORE YOU SAVE
Same person as @Gobbel2000@feddit.de, different instance.
THE MORE YOU SAVE
This blog post goes into some specifics of Rust reusing Vec allocations and some of the consequences. I think it’s really worth a read to better understand Vecs. From what I understand, it is possible that Rust will reuse the allocation of vec_a
in your case, but it ultimately is quite complicated.
The documentation has improved a lot recently. Especially the pocket guide is a great addition.