-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Optimize pattern matching #90746
Optimize pattern matching #90746
Conversation
It's hot in the `match-stress-enum` benchmark.
r? @wesleywiser (rust-highfive has picked a reviewer for you, use r? to override) |
r? @Nadrieril |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit f432a6447dba5e33ce3e6b759d8734f84a4fffb4 with merge 1235f8bc80de02dd823a68d66eb2c97f9f50d473... |
☀️ Try build successful - checks-actions |
Queued 1235f8bc80de02dd823a68d66eb2c97f9f50d473 with parent 8b09ba6, future comparison URL. |
@nnethercote congrats to your new job! It's extremely good news for the Rust project to see that you are back 🎉 . |
Finished benchmarking commit (1235f8bc80de02dd823a68d66eb2c97f9f50d473): comparison url. Summary: This change led to very large relevant mixed results 🤷 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never |
For instruction counts it's a big win on For cycles and wall-time the wins are smaller but still present. |
f432a64
to
580d357
Compare
After discussion with @Nadrieril, we decided the second commit isn't useful for real code, it's too targeted towards the highly artificial |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 580d357 with merge b103b623e78e73e1b16c11e3abed576ec7075c1b... |
☀️ Try build successful - checks-actions |
Queued b103b623e78e73e1b16c11e3abed576ec7075c1b with parent 68ca579, future comparison URL. |
Finished benchmarking commit (b103b623e78e73e1b16c11e3abed576ec7075c1b): comparison url. Summary: This change led to very large relevant mixed results 🤷 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never |
Wow big improvements for such a small change :D @bors r+ |
📌 Commit 580d357 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (936238a): comparison url. Summary: This change led to very large relevant mixed results 🤷 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression |
These commits speed up the
match-stress-enum
benchmark, which is very artificial, but the changes are simple enough that it's probably worth doing.r? @Nadrieril