Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

De-abstract std::sort:qsort3, which uses only the trait-based lt/eq. #3293

Closed
wants to merge 1 commit into from

Conversation

jld
Copy link
Contributor

@jld jld commented Aug 28, 2012

quick_sort3 was converted from fn parameters to traits in d9cddde, but
was still passing around closures over core::cmp::{eq,lt} internally,
and LLVM doesn't and/or can't pick up that they're effectively constant.

Reduces time spent to sort a large random ~[uint] by 16% in my testing.

quick_sort3 was converted from fn parameters to traits in d9cddde, but
was still passing around closures over core::cmp::{eq,lt} internally,
and LLVM doesn't and/or can't pick up that they're effectively constant.

Reduces time spent to sort a large random ~[uint] by 16% in my testing.
@brson
Copy link
Contributor

brson commented Aug 28, 2012

Thanks!

@brson brson closed this Aug 28, 2012
bors pushed a commit to rust-lang-ci/rust that referenced this pull request May 15, 2021
Keep leading colons for global paths
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants