Skip to content

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