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

add cache to AmbiguityCausesVisitor #135618

Merged
merged 3 commits into from
Jan 18, 2025
Merged

Conversation

lcnr
Copy link
Contributor

@lcnr lcnr commented Jan 17, 2025

@lcnr
Copy link
Contributor Author

lcnr commented Jan 17, 2025

@bors try @rust-timer queue

@rustbot rustbot added 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 Jan 17, 2025
@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 Jan 17, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 17, 2025
@bors
Copy link
Contributor

bors commented Jan 17, 2025

⌛ Trying commit 94bf8f0 with merge 1a372d6...

@bors
Copy link
Contributor

bors commented Jan 17, 2025

☀️ Try build successful - checks-actions
Build commit: 1a372d6 (1a372d66de385a25aaacfb711a4d1d32af5acd55)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (1a372d6): comparison URL.

Overall result: no relevant changes - 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-perf -perf-regression

Instruction count

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

Max RSS (memory usage)

Results (primary 2.5%, secondary 2.5%)

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)
2.5% [1.6%, 3.4%] 2
Regressions ❌
(secondary)
4.9% [1.7%, 8.2%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.3% [-2.3%, -2.3%] 1
All ❌✅ (primary) 2.5% [1.6%, 3.4%] 2

Cycles

Results (primary -1.6%, secondary 2.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.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.8% [2.8%, 2.8%] 1
Improvements ✅
(primary)
-1.6% [-2.3%, -1.2%] 3
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -1.6% [-2.3%, -1.2%] 3

Binary size

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

Bootstrap: 764.62s -> 763.451s (-0.15%)
Artifact size: 326.02 MiB -> 326.07 MiB (0.02%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jan 17, 2025
@rustbot rustbot added the WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) label Jan 17, 2025
@compiler-errors
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jan 17, 2025

📌 Commit 0910173 has been approved by compiler-errors

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 Jan 17, 2025
@Kobzol
Copy link
Contributor

Kobzol commented Jan 17, 2025

Should we perhaps add the test as a secondary benchmark in rustc-perf instead? If something regresses from seconds to minutes, it will hardly be visible in CI. Last year, the whole CI took like 2 hours longer because of some similar blow-up and we only found out after a couple of days, IIRC.

CC @lqd if you have opinions on the topic :)

@lqd
Copy link
Member

lqd commented Jan 17, 2025

"Instead", or in addition to this one?

  • "Instead of in this PR", I guess not really: since we also need an in-tree test for the Compilation taking unexpected long after 1.84 #135457 issue itself.
  • "In addition to", why not. It should be easier to see it regress on rustc-perf, yeah. As to whether it's needed, I'm not really sure, did we add secondary benchmarks for the other new solver blowups?

@Kobzol
Copy link
Contributor

Kobzol commented Jan 17, 2025

Yeah sorry, I meant "in addition to". I think that last time we added typenum as a benchmark for the new solver, but that's not exactly a stress test :)

@lcnr lcnr added beta-nominated Nominated for backporting to the compiler in the beta channel. stable-nominated Nominated for backporting to the compiler in the stable channel. labels Jan 17, 2025
@bors
Copy link
Contributor

bors commented Jan 18, 2025

⌛ Testing commit 0910173 with merge 8e59cf9...

@bors
Copy link
Contributor

bors commented Jan 18, 2025

☀️ Test successful - checks-actions
Approved by: compiler-errors
Pushing 8e59cf9 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jan 18, 2025
@bors bors merged commit 8e59cf9 into rust-lang:master Jan 18, 2025
7 checks passed
@rustbot rustbot added this to the 1.86.0 milestone Jan 18, 2025
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (8e59cf9): comparison URL.

Overall result: ❌ regressions - no action needed

@rustbot label: -perf-regression

Instruction count

This 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.

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

Max RSS (memory usage)

Results (primary 2.5%)

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)
2.5% [1.5%, 3.4%] 2
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.5% [1.5%, 3.4%] 2

Cycles

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

Binary size

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

Bootstrap: 763.854s -> 765.445s (0.21%)
Artifact size: 326.09 MiB -> 326.00 MiB (-0.03%)

@lcnr lcnr deleted the coherence-unknown branch January 20, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-nominated Nominated for backporting to the compiler in the beta channel. 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. stable-nominated Nominated for backporting to the compiler in the stable channel. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation taking unexpected long after 1.84
7 participants