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

Remove QueryStorage::store_nocache #107644

Merged
merged 1 commit into from
Feb 8, 2023
Merged

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Feb 3, 2023

This method was added in #70674 but it doesn't seem to serve any purpose.

@rustbot
Copy link
Collaborator

rustbot commented Feb 3, 2023

r? @oli-obk

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 3, 2023
@Zoxc
Copy link
Contributor Author

Zoxc commented Feb 3, 2023

The performance difference I saw locally was larger than expected given that it removes code in the cold path, maybe cutting down the lifetime of cache allowed LLVM to optimize better.

BenchmarkBeforeAfter
TimeTime%
🟣 clap:check1.8535s1.8357s -0.96%
🟣 hyper:check0.2679s0.2673s -0.20%
🟣 syntex_syntax:check6.4109s6.4031s -0.12%
🟣 syn:check1.6480s1.6420s -0.36%
🟣 regex:check1.0374s1.0300s -0.72%
Total11.2176s11.1780s -0.35%
Summary1.0000s0.9953s -0.47%

@cjgillot cjgillot self-assigned this Feb 3, 2023
@cjgillot
Copy link
Contributor

cjgillot commented Feb 3, 2023

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

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

bors commented Feb 3, 2023

⌛ Trying commit a8dab9b543fc2f1c5879ece9897a1731bf7e9971 with merge 5b3e037ba365bec26d118b6a5280b099b5dffc39...

@bors
Copy link
Contributor

bors commented Feb 3, 2023

☀️ Try build successful - checks-actions
Build commit: 5b3e037ba365bec26d118b6a5280b099b5dffc39 (5b3e037ba365bec26d118b6a5280b099b5dffc39)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (5b3e037ba365bec26d118b6a5280b099b5dffc39): comparison URL.

Overall result: ❌✅ regressions and improvements - 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.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -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.

mean range count
Regressions ❌
(primary)
0.2% [0.2%, 0.3%] 5
Regressions ❌
(secondary)
0.3% [0.2%, 0.5%] 7
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-4.1% [-7.2%, -1.0%] 2
All ❌✅ (primary) 0.2% [0.2%, 0.3%] 5

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.

mean range count
Regressions ❌
(primary)
3.0% [2.2%, 4.0%] 6
Regressions ❌
(secondary)
2.6% [0.7%, 4.3%] 51
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 3.0% [2.2%, 4.0%] 6

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.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
6.9% [4.7%, 9.5%] 6
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-4.0% [-4.0%, -4.0%] 1
All ❌✅ (primary) - - 0

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Feb 3, 2023
@cjgillot
Copy link
Contributor

cjgillot commented Feb 7, 2023

r=me after rebase

@Zoxc Zoxc force-pushed the query-cache-tweak branch from a8dab9b to d459840 Compare February 7, 2023 16:40
@oli-obk
Copy link
Contributor

oli-obk commented Feb 7, 2023

@bors r=cjgillot

@bors
Copy link
Contributor

bors commented Feb 7, 2023

📌 Commit d459840 has been approved by cjgillot

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 Feb 7, 2023
@bors
Copy link
Contributor

bors commented Feb 8, 2023

⌛ Testing commit d459840 with merge 9433ba6...

@bors
Copy link
Contributor

bors commented Feb 8, 2023

☀️ Test successful - checks-actions
Approved by: cjgillot
Pushing 9433ba6 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Feb 8, 2023
@bors bors merged commit 9433ba6 into rust-lang:master Feb 8, 2023
@rustbot rustbot added this to the 1.69.0 milestone Feb 8, 2023
@Zoxc Zoxc deleted the query-cache-tweak branch February 8, 2023 20:12
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (9433ba6): comparison URL.

Overall result: ❌ regressions - 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.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
1.4% [1.2%, 1.5%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

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.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-2.7% [-3.1%, -2.2%] 2
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -2.7% [-3.1%, -2.2%] 2

Cycles

This benchmark run did not return any relevant results for this metric.

@rustbot rustbot removed the perf-regression Performance regression. label Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) 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.

6 participants