[Perf Experiment] Introduce NeverShortCircuit to see if it helps fold-via-try_fold#90886
[Perf Experiment] Introduce NeverShortCircuit to see if it helps fold-via-try_fold#90886scottmcm wants to merge 2 commits intorust-lang:masterfrom
NeverShortCircuit to see if it helps fold-via-try_fold#90886Conversation
|
@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_foldwas enough to also get optimizedfold-- and at the LLVM level that completely works.Since the removal we've moved to a different
Tryimplementation, so this PR tries adding an as-simple-as-possiblerepr(transparent)newtypeNeverShortCircuitin hopes that will minimize any perf regressions (as it won't need to testFromimpls and such, like it used to back in the try_trait_v1 days).r? @ghost