-
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
rustc_metadata: Encode even less doc comments #103496
Conversation
r=me if a perf run comes back clean The reachability query however, was too much of a pessimization for incremental runs, when it was tried on the previous PR. |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit cd0977e2d8b58f702e1fafc0e794a238263aaf1f with merge 925fac1518f23cd489a35e7f477a78539f1a475c... |
☀️ Try build successful - checks-actions |
Queued 925fac1518f23cd489a35e7f477a78539f1a475c with parent c07a6a9, future comparison URL. |
Finished benchmarking commit (925fac1518f23cd489a35e7f477a78539f1a475c): comparison URL. Overall result: ❌✅ regressions and improvements - no action neededBenchmarking 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 Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Footnotes |
Consistent improvements in metadata size https://perf.rust-lang.org/compare.html?start=c07a6a9c0c6c571d535de74d7ec28469fba46e37&end=925fac1518f23cd489a35e7f477a78539f1a475c&stat=size%3Acrate_metadata |
📌 Commit cd0977e2d8b58f702e1fafc0e794a238263aaf1f has been approved by It is now in the queue for this repository. |
Awesome, thanks a bunch @petrochenkov. What I was particularly interested in the previous work was the impact on libstd/libcore (with the eventual goal of removing more of the unused/unexpected metadata), and on
Most of libcore's doc comments are surely exported anyways (stdarch's intel intrinsics), but that's another nice improvement on libstd. Getting the rest of the way to the expected >= 15% on libstd, and >= 10% on libcore will require finding a way to have tool-specific metadata either out of band, computed on demand via |
This comment was marked as resolved.
This comment was marked as resolved.
cd0977e
to
d080532
Compare
@bors r=lqd |
⌛ Testing commit d080532 with merge b3379a02362387aa52e162391500aeaadc04ab80... |
💥 Test timed out |
@bors retry |
This comment was marked as outdated.
This comment was marked as outdated.
⌛ Testing commit d080532 with merge c2e493e84bd3dbf2f2bab89f23fd40f6520e0d3c... |
💔 Test failed - checks-actions |
The job Click to see the possible cause of the failure (guessed by this bot)
|
@bors retry |
☀️ Test successful - checks-actions |
Finished benchmarking commit (4c736a2): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
|
rustc_metadata: Encode even less doc comments The fact that `def_id` is in the `tcx.privacy_access_levels(())` table is not very meaningful, especially after rust-lang#102026, `is_exported` (or `is_reachable` in the worst case) is what you need. Follow up to rust-lang#98450. r? `@GuillaumeGomez` `@lqd`
The fact that
def_id
is in thetcx.privacy_access_levels(())
table is not very meaningful, especially after #102026,is_exported
(oris_reachable
in the worst case) is what you need.Follow up to #98450.
r? @GuillaumeGomez @lqd