-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Box ItemKind::Impl #80961
Box ItemKind::Impl #80961
Conversation
r? @varkor (rust-highfive has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue |
Awaiting bors try build completion. |
⌛ Trying commit 8bd6427632c222fc019a624a88edcac1efa9c1fe with merge 764bf6c03d3cac0149069e4345da9fcaed5bc45d... |
The job Click to see the possible cause of the failure (guessed by this bot)
|
This makes it possible to pass the `Impl` directly to functions, instead of having to pass each of the many fields one at a time. It also simplifies matches in many cases.
This brings the size of ItemKind down from 128 to 88 bytes. Hopefully this will have perf improvements.
@rust-timer queue |
Awaiting bors try build completion. |
@rust-timer build 764bf6c03d3cac0149069e4345da9fcaed5bc45d |
Queued 764bf6c03d3cac0149069e4345da9fcaed5bc45d with parent 058a710, future comparison URL. @rustbot label: +S-waiting-on-perf |
☔ The latest upstream changes (presumably #79322) made this pull request unmergeable. Please resolve the merge conflicts. |
Finished benchmarking try commit (764bf6c03d3cac0149069e4345da9fcaed5bc45d): 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 |
Those numbers are not very promising :( |
I think that max-rss is noisy but there might be some value there... https://perf.rust-lang.org/compare.html?start=058a71016553f267ae80b90276ef79956457d51a&end=764bf6c03d3cac0149069e4345da9fcaed5bc45d&stat=max-rss |
I guess that going through the heap just makes things slower, it's fine. It's good to try things out and verify :) |
This brings the size of ItemKind down from 128 to 88 bytes.
Hopefully this will have perf improvements.
Follow-up to #79322 (comment), cc @estebank