-
Notifications
You must be signed in to change notification settings - Fork 13k
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 rvalue promotion to 'static instead of static items. #44312
Conversation
Just to confirm: you've verified that the codegen before and after for these callsites is the same? (these were carefully constructed to reduce code bloat) |
@alexcrichton The static data in |
Excellent! @bors: r+ |
📌 Commit 7e0b79d has been approved by |
@bors: rollup |
…lexcrichton Use rvalue promotion to 'static instead of static items. Fixes rust-lang#44240. Among other things, in crates that do a lot of formatting, this could reduce the number of items, although I haven't measured the performance benefits. If there's a codegen slowdown, that should IMO be solved by caching the output of miri, *not* by using `static`. r? @alexcrichton
…lexcrichton Use rvalue promotion to 'static instead of static items. Fixes rust-lang#44240. Among other things, in crates that do a lot of formatting, this could reduce the number of items, although I haven't measured the performance benefits. If there's a codegen slowdown, that should IMO be solved by caching the output of miri, *not* by using `static`. r? @alexcrichton
…lexcrichton Use rvalue promotion to 'static instead of static items. Fixes rust-lang#44240. Among other things, in crates that do a lot of formatting, this could reduce the number of items, although I haven't measured the performance benefits. If there's a codegen slowdown, that should IMO be solved by caching the output of miri, *not* by using `static`. r? @alexcrichton
@bors r- rollup- Suspect this caused failure in https://travis-ci.org/rust-lang/rust/jobs/273704890, rollup #44460:
vs
|
Wait, what, the PR builds don't check pretty tests? Ugh... |
Wow, I just ran |
7e0b79d
to
10f66bd
Compare
@bors r=alexcrichton p=1 (let's not put it in a rollup, so we can get perf deltas) |
📌 Commit 10f66bd has been approved by |
Use rvalue promotion to 'static instead of static items. Fixes #44240. Among other things, in crates that do a lot of formatting, this could reduce the number of items, although I haven't measured the performance benefits. If there's a codegen slowdown, that should IMO be solved by caching the output of miri, *not* by using `static`. r? @alexcrichton
☀️ Test successful - status-appveyor, status-travis |
Fixes #44240. Among other things, in crates that do a lot of formatting, this could reduce the number of items, although I haven't measured the performance benefits. If there's a codegen slowdown, that should IMO be solved by caching the output of miri, not by using
static
.r? @alexcrichton