-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Make root vars more stable #142090
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
Make root vars more stable #142090
Conversation
@bors2 try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Make root vars more stable Never resolve a ty/ct vid to a higher vid as its root. This should make the optimization in #141500 more "stable" when there are a lot of vars flying around. r? `@ghost`
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (55fb0af): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowBenchmarking 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 the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.
Max RSS (memory usage)Results (primary -1.1%, secondary 1.8%)This 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.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 750.971s -> 751.025s (0.01%) |
Let's try this again @bors2 try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Make root vars more stable Never resolve a ty/ct vid to a higher vid as its root. This should make the optimization in #141500 more "stable" when there are a lot of vars flying around. r? `@ghost`
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (8c7ffa9): comparison URL. Overall result: ✅ improvements - no 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. @bors rollup=never Instruction countThis is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.
Max RSS (memory usage)Results (primary 3.1%, secondary -5.8%)This 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.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 751.176s -> 750.384s (-0.11%) |
I don't see why we shouldn't land this, since I kinda like the invariant that we always equate a two vars with the root being its lowest vid. But it's also basically useless today, so I could see us tabling this for the future too. r? lcnr |
it's still a minor performance improvements and I agree that this change is desirable regardless of perf. It also feels better wrt to fudging and what not @bors r+ rollup=never |
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 1c04750 (parent) -> 2b0274c (this PR) Test differencesNo test diffs found Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 2b0274c71dba0e24370ebf65593da450e2e91868 --output-dir test-dashboard And then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
Finished benchmarking commit (2b0274c): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowOur benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -1.5%, secondary 4.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -2.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 756.123s -> 754.155s (-0.26%) |
Never resolve a ty/ct vid to a higher vid as its root. This should make the optimization in #141500 more "stable" when there are a lot of vars flying around.
r? @ghost