-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Put crate metadata first in the rlib #93816
Conversation
r? @lcnr (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 d0402c7b74a80e9236c8118717da4ec6ce2b2b47 with merge a98a13ec95bd42fbd8ab118f08091d9c1d7ad9dc... |
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-actions |
Queued a98a13ec95bd42fbd8ab118f08091d9c1d7ad9dc with parent b7cd0f7, future comparison URL. |
Finished benchmarking commit (a98a13ec95bd42fbd8ab118f08091d9c1d7ad9dc): comparison url. Summary: This benchmark run did not return any relevant results. 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. @bors rollup=never |
It seems like this slightly reduces cycle count overall, a bigger inprovement in fault count and a significant up to 6% reduction in max-rss. Wall time is too noisy to notice any effect. |
d0402c7
to
8be3767
Compare
This now doesn't place the metadata first if rustc can't wrap the metadata in an object file for the respective target. Blocked on #93864 |
r? @nagisa maybe |
r=me, probably want to squash away the fix review comments commit. |
f1872a7
to
9dc0c09
Compare
@bors r=nagisa |
📌 Commit 9dc0c09c9f01671f6604eb9a3892fc3d1790c66e has been approved by |
☔ The latest upstream changes (presumably #94103) made this pull request unmergeable. Please resolve the merge conflicts. |
This should make metadata lookup faster
9dc0c09
to
932559c
Compare
Rebased @bors r=nagisa |
📌 Commit 932559c has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (3b18651): comparison url. Summary: This benchmark run did not return any relevant results. 7 results were found to be statistically significant but too small to be relevant. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
Unlike the previous perf run this slightly increases instruction count. It does still result in a decent max-rss reduction. |
This should make metadata lookup faster
Fixes #93806