Uh oh!
There was an error while loading. Please reload this page.
[perf] Use std based dedup in projection - #47656
Conversation
Unstable sort was added recently, and the code that is being modified is 3 years old. As quicksort doesn't allocate it will likely perform as well as, or better than linear search.
rust-highfive
commented
Jan 22, 2018
(rust_highfive has picked a reviewer for you, use r? to override) |
ishitatsuyuki
commented
Jan 22, 2018
Hmm, so basically sorting fails because most types do not implement Ord. Is it a good idea to add derivation of them in this PR? |
kennytm
commented
Jan 22, 2018
@ishitatsuyuki Let's add it, we need a perf check anyway. If it's unacceptable we could use |
nikomatsakis
commented
Jan 22, 2018
Seems fine. I'd like to see some perf results, for sure -- even a local run on some non-trivial test case might be of interest. |
b89ebbb to
732ee67CompareUnwipped. Please perform a try and/or perf. |
Zoxc
commented
Jan 23, 2018
@bors try |
bors
commented
Jan 23, 2018
⌛ Trying commit c6772b4 with merge 77de396b7685c2d4870314ad7ca865ad7b6feb5c... |
bors
commented
Jan 23, 2018
☀️ Test successful - status-travis |
ishitatsuyuki
commented
Jan 23, 2018
@Mark-Simulacrum please perform a perf run. |
Mark-Simulacrum
commented
Jan 23, 2018
Perf queued. |
... and well, surprisingly no noticable time change except one (see below). To sum up, the code is now cleaner and resistant to quadratic blowup, but some Ord implementations are added.
EDIT: this time is quite fluctuating and should not be used as a metric. |
nikomatsakis
commented
Jan 25, 2018
@bors r+ |
bors
commented
Jan 25, 2018
📌 Commit c6772b4 has been approved by |
[perf] Use std based dedup in projection Unstable sort was added recently, and the code that is being modified is 3 years old. As quicksort doesn't allocate it will likely perform as well as, or better than linear search. I didn't benchmark. Have a perf run.
Unstable sort was added recently, and the code that is being modified is 3 years old. As quicksort doesn't allocate it will likely perform as well as, or better than linear search.
I didn't benchmark. Have a perf run.