-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Do not use box syntax in std
#106981
Do not use box syntax in std
#106981
Conversation
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
At one point this had perf implications. Seems highly unlikely for this patch, but measuring can't hurt. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 7f2cf19 with merge 0610c4d3402a5128c3b2bb5d074c332197053e14... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (0610c4d3402a5128c3b2bb5d074c332197053e14): 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. |
Sorry for the delay. You also rewrote a bunch of code at the same time, which complicated review (in the future, it would be better for those to be separate PRs, TBH). @bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (d3322e2): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. |
See #94970 and #49733. About half of the
box
instances instd
do not even need to allocate, the other half can simply be replaced withBox::new
.@rustbot label +T-libs
r? rust-lang/libs