diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-08-02 11:03:30 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-02 11:03:30 +0900 |
| commit | 0c9b35b8c726b679f4c9cb67d2936955515ce614 (patch) | |
| tree | b402def0cf4a8b4ccf3db0e77aa2710ad598e2a8 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | e924e76f77eab29a7181263ea92c5470453a715f (diff) | |
| parent | 9a2e3f3a8e032ae7b39c33bc7cc8f25ebbef8a8e (diff) | |
| download | rust-0c9b35b8c726b679f4c9cb67d2936955515ce614.tar.gz rust-0c9b35b8c726b679f4c9cb67d2936955515ce614.zip | |
Rollup merge of #87644 - Flying-Toast:vec-remove-note, r=the8472
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
