-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Don't serialize empty predicates to metadata #89111
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
Don't serialize empty predicates to metadata #89111
Conversation
This keeps empty predicates out of the metadata. In practice, it seems like it is quite common to have a default predicate set, so this should be a win.
|
r? @oli-obk (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 |
|
⌛ Trying commit 7cb427e with merge 485510f732a05f117b3daa440af2d0413fff7cb4... |
|
☀️ Try build successful - checks-actions |
|
Queued 485510f732a05f117b3daa440af2d0413fff7cb4 with parent 5ecc8ad, future comparison URL. |
|
Finished benchmarking commit (485510f732a05f117b3daa440af2d0413fff7cb4): comparison url. Summary: This change led to small relevant mixed results 🤷 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking 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 led to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never |
|
Doesn't seem like this really has an effect. Closing. |
This keeps empty predicates out of the metadata. In practice, it seems like it
is quite common to have a default predicate set, so this should be a win.
Diesel, for example, has 40% of decoded predicates being default/empty.
I believe this is an attempt to implement this suggestion, and hopefully will help with that regression.