mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
0c9b35b8c7
Recommend `swap_remove` in `Vec::remove` docs I was able to increase the performance (by 20%!) of my project by changing a `Vec::remove` call to `Vec::swap_remove` in a hot function. I think we should explicitly put a note in the Vec::remove docs to guide people in the right direction so they don't make a similar oversight.