diff options
| author | bors <bors@rust-lang.org> | 2023-11-05 17:41:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-05 17:41:36 +0000 |
| commit | 5103173af1948430886534268d8f18b7e8386234 (patch) | |
| tree | 1fdb4ee5ca5f620af7c32879fe75d16640c27c38 /tests/codegen/integer-overflow.rs | |
| parent | 6c7de3181b8bf0f0bcb07fbbcf9ce1ae4039283f (diff) | |
| parent | e501add1f9addf72a30a333ec57ccb4e2ac5a8e4 (diff) | |
| download | rust-5103173af1948430886534268d8f18b7e8386234.tar.gz rust-5103173af1948430886534268d8f18b7e8386234.zip | |
Auto merge of #117179 - Voultapher:fix-useless-comp-in-partition-equal, r=Mark-Simulacrum
Avoid unnecessary comparison in partition_equal The branchy Hoare partition `partition_equal` as part of `slice::sort_unstable` has a bug that makes it perform a comparison of the last element twice. Measuring inputs with a Zipfian distribution with characterizing exponent s == 1.0, yields a ~0.05% reduction in the total number of comparisons performed.
Diffstat (limited to 'tests/codegen/integer-overflow.rs')
0 files changed, 0 insertions, 0 deletions
