Skip to content
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

rustdoc: Pretty-print assoc const defaults on-demand #91812

Merged
merged 2 commits into from
Dec 17, 2021

Conversation

camelid
Copy link
Member

@camelid camelid commented Dec 11, 2021

This should improve performance, clean up the code, and help pave the
way for #83035.

@camelid camelid added C-cleanup Category: PRs that clean code up or issues documenting cleanup. I-compiletime Issue: Problems and improvements with respect to compile times. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Dec 11, 2021
@rust-highfive
Copy link
Collaborator

Some changes occurred in clean/types.rs.

cc @camelid

@rust-highfive
Copy link
Collaborator

r? @GuillaumeGomez

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 11, 2021
This should improve performance, clean up the code, and help pave the
way for rust-lang#83035.
@camelid camelid changed the title rustdoc: Pretty-print assoc const default on-demand rustdoc: Pretty-print assoc const defaults on-demand Dec 11, 2021
@camelid
Copy link
Member Author

camelid commented Dec 11, 2021

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

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

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Dec 11, 2021
@bors
Copy link
Contributor

bors commented Dec 11, 2021

⌛ Trying commit caec282fdf3aa37367933dcdffbb6f7bf785519f with merge 146ad07df7795b01adada901a9d9581d2bfbb6fd...

@camelid
Copy link
Member Author

camelid commented Dec 11, 2021

@bors rollup=never

@camelid

This comment has been minimized.

@bors

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@bors

This comment has been minimized.

@bors 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-review Status: Awaiting review from the assignee but also interested parties. labels Dec 11, 2021
It can always be re-added later if we decide to display associated const
default values.
@camelid
Copy link
Member Author

camelid commented Dec 11, 2021

I ran tests locally, so should be good now.

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

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

@bors
Copy link
Contributor

bors commented Dec 11, 2021

⌛ Trying commit 719d7a5 with merge 14d26c019a4f5cc06517d5296e7a8a0712175082...

@camelid camelid added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 11, 2021
@bors
Copy link
Contributor

bors commented Dec 12, 2021

☀️ Try build successful - checks-actions
Build commit: 14d26c019a4f5cc06517d5296e7a8a0712175082 (14d26c019a4f5cc06517d5296e7a8a0712175082)

@rust-timer
Copy link
Collaborator

Queued 14d26c019a4f5cc06517d5296e7a8a0712175082 with parent 928783d, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (14d26c019a4f5cc06517d5296e7a8a0712175082): comparison url.

Summary: This benchmark run did not return any relevant changes.

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

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Dec 12, 2021
@GuillaumeGomez
Copy link
Member

Thanks!

@bors: r+

@bors
Copy link
Contributor

bors commented Dec 12, 2021

📌 Commit 719d7a5 has been approved by GuillaumeGomez

@bors 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 Dec 12, 2021
@bors
Copy link
Contributor

bors commented Dec 15, 2021

⌛ Testing commit 719d7a5 with merge 4cc3158620cf9447a02ba755394cd7e79eedd2b6...

@bors
Copy link
Contributor

bors commented Dec 15, 2021

💥 Test timed out

@bors 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 Dec 15, 2021
@rust-log-analyzer
Copy link
Collaborator

A job failed! Check out the build log: (web) (plain)

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

@camelid
Copy link
Member Author

camelid commented Dec 17, 2021

Pretty sure that's spurious, so @bors retry

@bors 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 Dec 17, 2021
@bors
Copy link
Contributor

bors commented Dec 17, 2021

⌛ Testing commit 719d7a5 with merge 16d8a91...

@bors
Copy link
Contributor

bors commented Dec 17, 2021

☀️ Test successful - checks-actions
Approved by: GuillaumeGomez
Pushing 16d8a91 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 17, 2021
@bors bors merged commit 16d8a91 into rust-lang:master Dec 17, 2021
@rustbot rustbot added this to the 1.59.0 milestone Dec 17, 2021
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (16d8a91): comparison url.

Summary: This change led to very large relevant mixed results 🤷 in compiler performance.

  • Very large improvement in instruction counts (up to -6.8% on incr-unchanged builds of ctfe-stress-4)
  • Very large regression in instruction counts (up to 14.3% on incr-unchanged builds of tuple-stress)

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-triaged along with sufficient written justification. If you cannot justify the regressions please open an issue or create a new PR that fixes the regressions, add a comment linking to the newly created issue or PR, and then add the perf-regression-triaged label to this PR.

@rustbot label: +perf-regression

@rustbot rustbot added the perf-regression Performance regression. label Dec 17, 2021
@camelid camelid deleted the assoc-const-lazy branch December 17, 2021 19:25
@camelid
Copy link
Member Author

camelid commented Dec 17, 2021

@rylev rustc-perf is reporting extreme, spurious perf changes.

@camelid
Copy link
Member Author

camelid commented Dec 17, 2021

Hopefully those shouldn't happen again now that rust-lang/rustc-perf#1123 is merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. I-compiletime Issue: Problems and improvements with respect to compile times. merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants