rust/library/alloc
Dylan DPC 90797ef008
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.
2021-03-18 00:28:04 +01:00
..
benches Vec::dedup optimization - add benches 2021-03-16 14:41:26 +01:00
src Rollup merge of #82191 - Soveu:dedup, r=nagisa 2021-03-18 00:28:04 +01:00
tests Vec::dedup optimization - add benches 2021-03-16 14:41:26 +01:00
Cargo.toml Update compiler_builtins to 0.1.39 2021-01-07 16:16:36 +09:00