-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Streamline fast rejection #109367
Streamline fast rejection #109367
Conversation
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
Best reviewed one commit at a time. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit fbd4c7514c40074c88176cb0be03d8c8af46f764 with merge 6d89e3f3b105505a8cfe2eff22c4fbbf6c669a54... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (6d89e3f3b105505a8cfe2eff22c4fbbf6c669a54): 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.
|
fbd4c75
to
3f1c922
Compare
Hmm, surprising results. Those 1-2% regressions for @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 3f1c92221deb427539b4dc017eb0a235fbb3fb2c with merge 78def68c90d6be15e89aab52faf5d960f0be0ac4... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (78def68c90d6be15e89aab52faf5d960f0be0ac4): comparison URL. Overall result: ❌ regressions - 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 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.
|
So, perf is neutral now. (I will assume the supposed max-rss regressions are noise, because there is no reason why this change should have that effect.) This PR is now just about making the code a little nicer. |
r? @compiler-errors @bors r+ |
📌 Commit 3f1c92221deb427539b4dc017eb0a235fbb3fb2c has been approved by It is now in the queue for this repository. |
f*** wait there's a merge conflict @bors r- r=me |
☔ The latest upstream changes (presumably #109561) made this pull request unmergeable. Please resolve the merge conflicts. |
It factors out a repeated code pattern.
It has a single callsite.
Because it has a single call site, and it lets us move a small amount of the work outside the loop.
3f1c922
to
0392366
Compare
@bors r=compiler-errors rollup |
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#109149 (Improve error message when writer is forgotten in write and writeln macro) - rust-lang#109367 (Streamline fast rejection) - rust-lang#109548 (AnnotationColumn struct to fix hard tab column numbers in errors) - rust-lang#109694 (do not panic on failure to acquire jobserver token) - rust-lang#109705 (new solver: check for intercrate mode when accessing the cache) - rust-lang#109708 (Specialization involving RPITITs is broken so ignore the diagnostic differences) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Some reworkings of this code that make it a little nicer.
r? @lcnr