use triomphe::Arc for InternedObligationCauseCode instead of Arc#137135
use triomphe::Arc for InternedObligationCauseCode instead of Arc#137135klensy wants to merge 2 commits intorust-lang:mainfrom
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?