diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-03-18 00:28:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-18 00:28:04 +0100 |
| commit | 90797ef008a2004e70ff0106c756f24ea63ab236 (patch) | |
| tree | e8cb8a5d1ee1b6ef5fc05df529e620062ebf1598 /compiler/rustc_mir/src/transform/coverage/debug.rs | |
| parent | 36f1f04f18b89ba4a999bcfd6584663fd6fc1c5d (diff) | |
| parent | b0092bc995fa3e6633c3aaa1d0a56006ab7ad1e3 (diff) | |
| download | rust-90797ef008a2004e70ff0106c756f24ea63ab236.tar.gz rust-90797ef008a2004e70ff0106c756f24ea63ab236.zip | |
Rollup merge of #82191 - Soveu:dedup, r=nagisa
Vec::dedup_by optimization Now `Vec::dedup_by` drops items in-place as it goes through them. From my benchmarks, it is around 10% faster when T is small, with no major regression when otherwise. I used `ptr::copy` instead of conditional `ptr::copy_nonoverlapping`, because the latter had some weird performance issues on my ryzen laptop (it was 50% slower on it than on intel/sandybridge laptop) It would be good if someone was able to reproduce these results.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
