10

rustc_metadata: Encode even less doc comments by petrochenkov · Pull Request #10...

 2 years ago
source link: https://github.com/rust-lang/rust/pull/103496
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

rustc_metadata: Encode even less doc comments #103496

Conversation

Contributor

@petrochenkov petrochenkov commented Oct 24, 2022

The fact that def_id is in the tcx.privacy_access_levels(()) table is not very meaningful, especially after #102026, is_exported (or is_reachable in the worst case) is what you need.

Follow up to #98450.
r? @GuillaumeGomez @lqd

All reactions

rustbot

added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label

Oct 24, 2022

rust-highfive

added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label

Oct 24, 2022

Member

lqd commented Oct 24, 2022

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.

Contributor

Author

petrochenkov commented Oct 24, 2022

Collaborator

rust-timer commented Oct 24, 2022

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

rustbot

added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label

Oct 24, 2022

Contributor

bors commented Oct 24, 2022

hourglass Trying commit cd0977e with merge 925fac1...

petrochenkov

removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label

Oct 24, 2022

Contributor

bors commented Oct 24, 2022

sunny Try build successful - checks-actions
Build commit: 925fac1 (925fac1518f23cd489a35e7f477a78539f1a475c)

Collaborator

rust-timer commented Oct 24, 2022

Collaborator

rust-timer commented Oct 25, 2022

Finished benchmarking commit (925fac1): comparison URL.

Overall result: xwhite_check_mark regressions and improvements - no action needed

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
@rustbot label: +S-waiting-on-review -S-waiting-on-perf -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean1 range count2
Regressions x
(primary)
- - 0
Regressions x
(secondary)
0.1% [0.1%, 0.1%] 1
Improvements white_check_mark
(primary)
- - 0
Improvements white_check_mark
(secondary)
-0.2% [-0.2%, -0.2%] 1
All xwhite_check_mark (primary) - - 0

Max RSS (memory usage)

Results

Cycles

This benchmark run did not return any relevant results for this metric.

Footnotes

  1. the arithmetic mean of the percent change

  2. number of relevant changes

lqd reacted with thumbs up emoji All reactions

rustbot

added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

and removed S-waiting-on-perf Status: Waiting on a perf run to be completed.

labels

Oct 25, 2022

Contributor

bors commented Oct 25, 2022

pushpin Commit cd0977e has been approved by lqd

It is now in the queue for this repository.

bors

added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

labels

Oct 25, 2022

Member

lqd commented Oct 25, 2022

edited

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 x86_64-unknown-linux-gnu we see from pre-#98450 to this PR:

item nightly-2022-10-20 nightly with #98450 this PR total
libstd.rmeta 10652720 10363296 10142392 -4.8%
libcore.rmeta 60157032 59557024 59435328 -1.2%
libstd.rlib 20904980 20614708 20394284 -2.4%
libcore.rlib 64008136 63413340 63286316 -1.1%

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 -Zbuild-std, or a different mechanism (maybe related to miri's custom sysroot build, in case it's not using build-std and/or xargo).

This comment has been hidden.

bors

added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

labels

Oct 29, 2022

Contributor

Author

petrochenkov commented Oct 29, 2022

@bors r=lqd

Contributor

bors commented Oct 29, 2022

pushpin Commit d080532 has been approved by lqd

It is now in the queue for this repository.

bors

added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

labels

Oct 29, 2022

Contributor

bors commented Oct 31, 2022

hourglass Testing commit d080532 with merge b3379a0...

Contributor

bors commented Oct 31, 2022

boom Test timed out

bors

added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

labels

Oct 31, 2022

Member

lqd commented Oct 31, 2022

@bors retry

bors

added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

labels

Oct 31, 2022

This comment was marked as outdated.

Contributor

bors commented Nov 1, 2022

hourglass Testing commit d080532 with merge c2e493e...

Contributor

bors commented Nov 1, 2022

broken_heart Test failed - checks-actions

bors

added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

labels

Nov 1, 2022

Collaborator

rust-log-analyzer commented Nov 1, 2022

The job x86_64-gnu-aux failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)

Contributor

cjgillot commented Nov 1, 2022

@bors retry

bors

added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

labels

Nov 1, 2022

Contributor

bors commented Nov 1, 2022

hourglass Testing commit d080532 with merge 4c736a2...

Contributor

bors commented Nov 1, 2022

sunny Test successful - checks-actions
Approved by: lqd
Pushing 4c736a2 to master...

bors

added the merged-by-bors This PR was explicitly merged by bors label

Nov 1, 2022

bors

merged commit 4c736a2 into

rust-lang:master

Nov 1, 2022

11 checks passed

rustbot

added this to the 1.67.0 milestone

Nov 1, 2022

Collaborator

rust-timer commented Nov 1, 2022

Finished benchmarking commit (4c736a2): comparison URL.

Overall result: x regressions - no action needed

@rustbot label: -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions x
(primary)
- - 0
Regressions x
(secondary)
1.7% [1.7%, 1.7%] 1
Improvements white_check_mark
(primary)
- - 0
Improvements white_check_mark
(secondary)
- - 0
All xwhite_check_mark (primary) - - 0

Max RSS (memory usage)

Results

Cycles

Results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Labels

merged-by-bors This PR was explicitly merged by bors S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Milestone

1.67.0

Development

Successfully merging this pull request may close these issues.

None yet

9 participants

</div


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK