-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[Perf Experiment] Introduce NeverShortCircuit
to see if it helps fold-via-try_fold
#90886
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
Conversation
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit bdef2ad with merge 6f42da510ae8aeb7f33b36463a98f35e72a14d91... |
This comment has been minimized.
This comment has been minimized.
@rust-timer build 6f42da510ae8aeb7f33b36463a98f35e72a14d91 |
Queued 6f42da510ae8aeb7f33b36463a98f35e72a14d91 with parent b416e38, future comparison URL. |
Finished benchmarking commit (6f42da510ae8aeb7f33b36463a98f35e72a14d91): comparison url. Summary: This change led to 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 |
Hmm, mostly 0.1% regressions but a couple over 1%. Promising, but not clean enough to be obviously-fine. Seeing 1% regressions on check builds makes me think there's an opportunity to improve that, since the implementation of a function in |
This was removed a while ago for compilation time reasons, but the user experience would be better if implementing just
try_fold
was enough to also get optimizedfold
-- and at the LLVM level that completely works.Since the removal we've moved to a different
Try
implementation, so this PR tries adding an as-simple-as-possiblerepr(transparent)
newtypeNeverShortCircuit
in hopes that will minimize any perf regressions (as it won't need to testFrom
impls and such, like it used to back in the try_trait_v1 days).r? @ghost