Skip to content

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

Closed
jld wants to merge 1 commit into
rust-lang:incomingfrom
jld:qsort3fn
Closed

De-abstract std::sort:qsort3, which uses only the trait-based lt/eq.#3293
jld wants to merge 1 commit into
rust-lang:incomingfrom
jld:qsort3fn

Conversation

@jld

@jld jld commented Aug 28, 2012

Copy link
Copy Markdown
Contributor

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

brson commented Aug 28, 2012

Copy link
Copy Markdown
Contributor

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