-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Improve the CGU merging algorithm #111712
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
Improve the CGU merging algorithm #111712
Conversation
- Pass a slice instead of an iterator to `debug_dump`. - For each CGU set, print: the number of CGUs, the max and min size, and the ratio of the max and min size (which indicates how evenly sized they are). - Print a `FINAL` entry, showing the absolute final results.
Measuring locally, this gave clearly better results -- more evenly sized CGUs -- but didn't have much effect on compile times, primarily because there are some big CGUs even before merging occurs, and they are the limiting factor. But let's try it on CI. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit a7f886e846acc849e05e0183061a5a584d53cbab with merge 520155aa1654c14240f3b2f4dcfab03a94968bfc... |
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (520155aa1654c14240f3b2f4dcfab03a94968bfc): 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: 641.625s -> 643.141s (0.24%) |
a7f886e
to
e292500
Compare
Bad perf results all around: walltime, max-rss, and binary size are all worse on average. More work needed here. In the meantime I will open a new PR for the debug output improvements. |
r? @ghost