-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Compile backtrace-related deps with opt-level=s
#122462
Conversation
rustbot has assigned @Mark-Simulacrum. Use r? to explicitly pick a reviewer |
After this, the largest functions in helloworld-tiny are
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Compile backtrace-related deps with `opt-level=s` Locally, this shrinks a stripped helloworld by 8k (~2%), which isn't huge but it's something. I also tried `opt-level=z` but it produces the same result. `opt-level=s` is preferrable in that case since it inhibits fewer optimizations.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (2105cee): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDBenchmarking 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 may lead 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 Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Bootstrap: 670.21s -> 668.391s (-0.27%) |
Didn't expect the perf regressions to be so large, will investigate. @rustbot author |
Perf regressions for
|
Locally, this shrinks a stripped helloworld by 8k (~2%), which isn't huge but it's something. I also tried `opt-level=z` but it produces the same result. `opt-level=s` is preferrable in that case since it inhibits fewer optimizations.
☔ The latest upstream changes (presumably #123608) made this pull request unmergeable. Please resolve the merge conflicts. |
I think we are dynamically linking these crates? rustc uses a shared library for std today. In any case I think this likely can't proceed given the regressions so I'm going to go ahead and close (but feel free to reopen if you want to invest in alternative designs etc). |
Locally, this shrinks a stripped helloworld by 8k (~2%), which isn't huge but it's something.
I also tried
opt-level=z
but it produces the same result.opt-level=s
is preferrable in that case since it inhibits fewer optimizations.