Uh oh!
There was an error while loading. Please reload this page.
add a fastpath to match_impl for the non-HRTB case - #36931
Conversation
bors
commented
Oct 4, 2016
☔ The latest upstream changes (presumably #36953) made this pull request unmergeable. Please resolve the merge conflicts. |
this leads to a 1.5% all-around typeck time improvement
this does not have a measurable performance effect and mostly makes the logs clearer
There was a problem hiding this comment.
Hmm. I'm not thrilled about the duplication, though the perf win is nice.
There was a problem hiding this comment.
That's about the smallest amount of code you can duplicate ;-).
this improves typeck performance by another 1%
Perf differences over just shortcutting Small but solid. OTOH, maybe small enough we should just shortcut |
nikomatsakis
commented
Oct 7, 2016
r=me |
nikomatsakis
commented
Oct 7, 2016
Hmm. So I think the changes are ok, but I agree these gains are not very large. |
nikomatsakis
commented
Oct 17, 2016
@arielb1 after having let this sit for a bit, my take is that given the minimal gains and the code duplication that was introduced, this is maybe not worth it. What do you think? |
arielb1
commented
Oct 17, 2016
Sure. I have an idea for a better improvement too - just need to get to it. But at least the shortcut- |
This leads to a 2.5% all-around typeck time improvement.
e.g. librustc times before:
at the first commit:
at the third commit:
r? @nikomatsakis