-
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
Skip Lazy
for some metadata tables
#95867
Conversation
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 39fd6f674c492d209f83a490ebaf10cbf0b150a8 with merge 15d46b8154c4bad80167c6cbf595c14757a5d34d... |
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit b4cf2cd with merge 20b8a895ef404521ba7fac00e8f75e13eb407af4... |
☀️ Try build successful - checks-actions |
Queued 20b8a895ef404521ba7fac00e8f75e13eb407af4 with parent 32c2630, future comparison URL. |
Finished benchmarking commit (20b8a895ef404521ba7fac00e8f75e13eb407af4): comparison url. Summary:
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 may lead to changes in compiler perf. @bors rollup=never Footnotes |
Perf reports no change in instruction count, and a ~1.5 % decrease in max-rss. r? rust-lang/compiler |
@bors r+ rollup=never |
📌 Commit b4cf2cd has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (de56c29): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Footnotes |
The PR provides a consistent reduction in max-rss ~1.5-2%. The instruction count result is less than 1% and mixed. |
Some metadata tables encode their entries indirectly, through the Lazy construct. This is useful when dealing with variable length encoding, but incurs the extra cost of one u32.
Meanwhile, some fields can be encoded in a single u8, or can use a short fixed-length encoding. This PR proposes to do so, and avoid the overhead.