-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Box Impl.blanket_impl
to reduce size
#85311
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
Conversation
Blanket impls are probably not super common, and `Type` is a fairly large type, so this should reduce `Impl`'s size by a lot: `Option<Type>` is around 96 bytes, and `Option<Box<Type>>` is 8 bytes, so it's a big difference!
r? @CraftSpider (rust-highfive has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
Weird, bors does not seem to have noticed this PR... @bors try |
@bors try |
⌛ Trying commit f57537e with merge 742560ab710e5cd8eb736df68b736930cc190b2c... |
Closing and reopening seems to have done the trick. |
I just checked locally and this change reduces |
☀️ Try build successful - checks-actions |
Queued 742560ab710e5cd8eb736df68b736930cc190b2c with parent 1025db8, future comparison URL. |
Finished benchmarking try commit (742560ab710e5cd8eb736df68b736930cc190b2c): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
@bors r+ |
📌 Commit f57537e has been approved by |
☀️ Test successful - checks-actions |
Blanket impls are probably not super common, and
Type
is a fairlylarge type, so this should reduce
Impl
's size by a lot:Option<Type>
is around 96 bytes, and
Option<Box<Type>>
is 8 bytes, so it's a bigdifference!