delegation: store child segment flag in PathSegment#158556
Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
delegation: store child segment flag in `PathSegment`
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (ab95f53): comparison URL. Overall result: no relevant changes - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesThis perf run didn't have relevant results for this metric. Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 486.982s -> 486.289s (-0.14%) |
|
There are no significant improvements, but many insignificant with significance factor 0.6 - 0.8, including
And in this PR:
So I think we can consider perf regression from #157960 to be resolved here. @rustbot ready |
|
HIR ty lowering was modified cc @fmease |
| /// Whether this segment is a delegation's child segment: | ||
| /// `reuse Trait::foo`, in this case `foo` is a delegation's child segment. | ||
| /// Used for faster check during generic args lowering. | ||
| pub delegation_child_segment: bool, |
There was a problem hiding this comment.
Note: the PathSegment's size doesn't change, there's a corresponding assert at the bottom of the file.
|
r=me after addressing #158556 (comment). |
|
✌️ @aerooneqq, you can now approve this pull request! If @petrochenkov told you to " |
|
Reminder, once the PR becomes ready for a review, use |
…ent into `PathSegment`
2bee069 to
91a762b
Compare
|
@bors r=petrochenkov |
This should reduce perf overhead of checking whether path segment is a delegation's child segment.
r? @petrochenkov