-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
super_relate_consts
: stop being generic
#100016
Conversation
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 9bcf682f0bf962ec27630cc9c0adc829cd97d32e with merge 34427f20790cbf9f8387dd5a31e2de71d5466fd6... |
☀️ Try build successful - checks-actions |
Queued 34427f20790cbf9f8387dd5a31e2de71d5466fd6 with parent 25bb1c1, future comparison URL. |
Finished benchmarking commit (34427f20790cbf9f8387dd5a31e2de71d5466fd6): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. 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 Footnotes |
Hmm, comparing the bootstrap times from PR 99730 to the bootstrap times on PR 100016, it seems like 99730 regressed bootstrap times by ~2%, but this PR failed to recover that loss (it only improves bootstrap times by 0.11%). I'll try to dig a little bit more into the specific data reported, just wanted to point out that this change made by PR #100016 may not be the way to address the root cause of the bootstrap time regression . |
For the bootstrap regression in #99730, I think we likely need to consider going back to dynamic dispatch, instead of static. It's a trade off between compiler compile times and overall compile times. This I think is dependent on that decision. |
change `FnMutDelegate` to trait objects cc rust-lang#100016 as mentioned in the last t-compiler meeting r? `@jackh726`
alright, with #101857 merged, let's try this again @bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
🔒 Merge conflict This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again. How do I rebase?Assuming
You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial. Please avoid the "Resolve conflicts" button on GitHub. It uses Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Error message
|
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 781cfcd with merge 3374e3a25403f810abbddcb3160b375b60ffc237... |
☀️ Try build successful - checks-actions |
Queued 3374e3a25403f810abbddcb3160b375b60ffc237 with parent 7a8636c, future comparison URL. |
Finished benchmarking commit (3374e3a25403f810abbddcb3160b375b60ffc237): comparison URL. Overall result: no relevant changes - 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 benchmark run did not return any relevant results for this metric. 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. Footnotes |
alright, looks like this is pretty much irrelevant now 😁 |
I previously attempted this in #78288 where it slightly improved perf and bootstrap times.
With #99730 changing
BoundVarReplacer
to use a type parameter instead of a trait object, this may now be even more effective. RelatingConstKind::Value
was a large part of this function in the past, which may reduce the impact of this change tough.r? @jackh726