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
Use Box<[T]> for ProcessResult::Changed #121355
Conversation
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Use Box<[T]> for ProcessResult::Changed Using a boxed slice here should save moving around the capacity when it's equal, and maybe save some memory as this automatically `shrink_to_fit`s.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (5140237): comparison URL. Overall result: ✅ improvements - 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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 641.255s -> 639.801s (-0.23%) |
Probably noise. I don't think we should land this, since it just adds extra complexity. |
I don't see how this is extra complexity? Boxed slices are less complex than Vecs. |
@compiler-errors the only metric affected does have a >1x significance factor, and the over all changes seem slightly annoying simply because @GnomedDev apologies for the delay in reviewing this again, it fell of my radar. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm +1, but want to discuss and arrive to the consensus with @compiler-errors
Thanks, but I don't think this is worth the change. If this were actually significantly affecting the processing of obligations in fulfillment, then we would see more than a single benchmark improve here; afaict, there's nothing particularly special about |
Using a boxed slice here should save moving around the capacity when it's equal, and maybe save some memory as this automatically
shrink_to_fit
s.