-
Notifications
You must be signed in to change notification settings - Fork 13.4k
use triomphe::Arc for InternedObligationCauseCode instead of Arc #137135
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
base: master
Are you sure you want to change the base?
Conversation
r? @Nadrieril rustbot has assigned @Nadrieril. Use |
The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging. These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
use triomphe::Arc for InternedObligationCauseCode instead of Arc This nicely cuts memory reads (reported by dhat), while marginally reducing maxrss for some stresstest. Lets see perf?
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (ee89a51): 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)Results (primary 1.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.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 790.759s -> 790.962s (0.03%) |
I personally don't think this justifies changing the impl |
Very small instructions and maxrss improvement, but can be spurious (with
Actual change is only one line: - code: Option<Arc<ObligationCauseCode<'tcx>>>,
+ code: Option<triomphe::Arc<ObligationCauseCode<'tcx>>>, all other changes is copy&paste of Arc impls. |
What I mean is relying on an alternative, out-of-tree implementation of |
Triage: comment is not answered and need rebase |
This nicely cuts memory reads (reported by dhat), while marginally reducing maxrss for some stresstest (#125267 (comment)).
Lets see perf?