-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Remove eval_always from check_private_in_public. #116316
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
(rustbot has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Remove eval_always from check_private_in_public.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (812ab76): comparison URL. Overall result: ❌ regressions - 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: 627.128s -> 628.596s (0.23%) |
The perf data looks odd to me, a significant portion of the regressions, including all of the regressions above 1%, have a seemingly spurious downwards spike at the very end of the 30 day graph of similar magnitude to the reported increase for each of those tests. edit: That may not be spurious improvements, the previous commit was a PR that was expected to have performance improvements. I'm still not convinced that this change should have completely undone them though. |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Remove eval_always from check_private_in_public.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (cba27a0): comparison URL. Overall result: ❌ regressions - 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.
CyclesThis benchmark run did not return any relevant results for this metric. 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: 620.955s -> 621.494s (0.09%) |
The second comment's name suggests that it might have some intersection with #113671, but apparently it does not. |
On another hand, this is exactly the same trade-off as in "Make metadata a workproduct and reuse it", and the same motivation
applies. |
I could experiment with splitting that query per module in a follow-up PR. This could make incr-patched case a bit better, at the expense of more dep-graph traffic, so regressing incr-full and incr-unchanged. |
Splitting the lint per module, the perf results are here: #144479 (comment). From a cursory glance, they are close and show pretty much the same tradeoff. |
The results for |
Hmm, That means for id in crate_items.free_items() {
checker.check_item(id);
} can be potentially turned into a parallel loop. What do you think? |
Extra perf in the other pr. If you're OK with the direction, I suggest we merge this PR and then merge the other to see the isolated effect. |
@bors r+ |
☀️ 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 3048886 (parent) -> 606dcc0 (this PR) Test differencesShow 45 test diffs45 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 606dcc0d2e54d260f67d8a91f8adaf797a4ed38a --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 (606dcc0): 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 -4.2%, secondary 2.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -2.9%, secondary -3.9%)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: 470.294s -> 468.729s (-0.33%) |
Remove eval_always from check_private_in_public. This PR attempts to avoid re-computing `check_private_in_public` query. First by marking the query as non-`eval_always`, and by reducing the amount of accesses to HIR as much as possible. Latest perf rust-lang/rust#116316 (comment) shows that we manage it. The cost is extra dep-graph bookkeeping.
Remove eval_always from check_private_in_public. This PR attempts to avoid re-computing `check_private_in_public` query. First by marking the query as non-`eval_always`, and by reducing the amount of accesses to HIR as much as possible. Latest perf rust-lang/rust#116316 (comment) shows that we manage it. The cost is extra dep-graph bookkeeping.
The incr-patched regressions are eliminated in #144479. |
Remove eval_always from check_private_in_public. This PR attempts to avoid re-computing `check_private_in_public` query. First by marking the query as non-`eval_always`, and by reducing the amount of accesses to HIR as much as possible. Latest perf rust-lang/rust#116316 (comment) shows that we manage it. The cost is extra dep-graph bookkeeping.
Perform check_private_in_public by module. Based on #116316
This PR attempts to avoid re-computing
check_private_in_public
query. First by marking the query as non-eval_always
, and by reducing the amount of accesses to HIR as much as possible.Latest perf #116316 (comment) shows that we manage it. The cost is extra dep-graph bookkeeping.