Skip to content
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

Do not fetch HIR node when iterating to find lint. #101862

Merged
merged 1 commit into from
Sep 18, 2022

Conversation

cjgillot
Copy link
Contributor

Addresses the regression in #101620

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Sep 15, 2022
@rust-highfive
Copy link
Collaborator

r? @petrochenkov

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 15, 2022
@cjgillot
Copy link
Contributor Author

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 15, 2022
@bors
Copy link
Contributor

bors commented Sep 15, 2022

⌛ Trying commit c9c6c50 with merge 0909a15b36343dbc55af9d62c5d3ef9228f59673...

@petrochenkov petrochenkov removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 15, 2022
@bors
Copy link
Contributor

bors commented Sep 15, 2022

☀️ Try build successful - checks-actions
Build commit: 0909a15b36343dbc55af9d62c5d3ef9228f59673 (0909a15b36343dbc55af9d62c5d3ef9228f59673)

@rust-timer
Copy link
Collaborator

Queued 0909a15b36343dbc55af9d62c5d3ef9228f59673 with parent 294f0ee, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (0909a15b36343dbc55af9d62c5d3ef9228f59673): comparison URL.

Overall result: ✅ improvements - no action needed

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 may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: +S-waiting-on-review -S-waiting-on-perf -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.5% [-2.2%, -0.2%] 28
Improvements ✅
(secondary)
-12.9% [-38.6%, -2.6%] 6
All ❌✅ (primary) -0.5% [-2.2%, -0.2%] 28

Max RSS (memory usage)

Results

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.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
4.3% [3.8%, 5.0%] 3
Improvements ✅
(primary)
-2.4% [-2.4%, -2.4%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -2.4% [-2.4%, -2.4%] 1

Cycles

Results

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.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-4.6% [-9.7%, -2.1%] 4
Improvements ✅
(secondary)
-15.6% [-31.5%, -5.8%] 4
All ❌✅ (primary) -4.6% [-9.7%, -2.1%] 4

Footnotes

  1. the arithmetic mean of the percent change 2 3

  2. number of relevant changes 2 3

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Sep 16, 2022
@cjgillot
Copy link
Contributor Author

r? @oli-obk
This PR supersedes #101839.

@oli-obk
Copy link
Contributor

oli-obk commented Sep 16, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Sep 16, 2022

📌 Commit c9c6c50 has been approved by oli-obk

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 16, 2022
@bors
Copy link
Contributor

bors commented Sep 18, 2022

⌛ Testing commit c9c6c50 with merge bc7b17c...

@bors
Copy link
Contributor

bors commented Sep 18, 2022

☀️ Test successful - checks-actions
Approved by: oli-obk
Pushing bc7b17c to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Sep 18, 2022
@bors bors merged commit bc7b17c into rust-lang:master Sep 18, 2022
@rustbot rustbot added this to the 1.66.0 milestone Sep 18, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (bc7b17c): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.6% [-2.3%, -0.2%] 24
Improvements ✅
(secondary)
-13.1% [-39.1%, -3.2%] 6
All ❌✅ (primary) -0.6% [-2.3%, -0.2%] 24

Max RSS (memory usage)

Results

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.

mean1 range count2
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.4% [2.4%, 2.4%] 1
Improvements ✅
(primary)
-2.0% [-2.9%, -1.0%] 9
Improvements ✅
(secondary)
-2.4% [-3.6%, -1.9%] 8
All ❌✅ (primary) -2.0% [-2.9%, -1.0%] 9

Cycles

Results

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.

mean1 range count2
Regressions ❌
(primary)
2.1% [2.1%, 2.1%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-3.3% [-4.2%, -2.0%] 4
Improvements ✅
(secondary)
-15.7% [-31.5%, -5.8%] 4
All ❌✅ (primary) -2.2% [-4.2%, 2.1%] 5

Footnotes

  1. the arithmetic mean of the percent change 2 3

  2. number of relevant changes 2 3

@the8472
Copy link
Member

the8472 commented Sep 19, 2022

Addresses the regression in #101620

Not fully. E.g. the worst-case max-rss regression in ucd | check | incr-unchanged is 28%, which isn't recovered by this PR.

@Mark-Simulacrum
Copy link
Member

And on instruction counts too - this is the contributor to the big jump in the week summary graphs, which doesn't recover by the end of the week pretty much at all.

@Mark-Simulacrum
Copy link
Member

@cjgillot I think #101839 should be landed until we have a PR that actually restores our performance here to baseline, which this PR didn't do. (Or some discussion should be had about why we're taking a fairly large hit across many benchmarks, including primary ones).

@cjgillot cjgillot deleted the lint-regression branch September 20, 2022 18:07
bors pushed a commit to rust-lang-ci/rust that referenced this pull request Sep 23, 2022
…oli-obk"

This reverts commit bc7b17c, reversing
changes made to 5253b0a.
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 24, 2022
Revert perf-regression 101620

Reverts rust-lang#101862 rust-lang#101620

r? `@Mark-Simulacrum`
oli-obk pushed a commit to oli-obk/rust that referenced this pull request Sep 28, 2022
Revert perf-regression 101620

Reverts rust-lang#101862 rust-lang#101620

r? `@Mark-Simulacrum`
Aaron1011 pushed a commit to Aaron1011/rust that referenced this pull request Jan 6, 2023
Revert perf-regression 101620

Reverts rust-lang#101862 rust-lang#101620

r? `@Mark-Simulacrum`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants