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] Switch to Symbol for item.name #80044

Merged
merged 2 commits into from
Dec 15, 2020
Merged

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Dec 15, 2020

This decreases the size of Item from 680 to 616 bytes. It also does a
lot less work since it no longer has to copy as much.

Helps with #79103.

r? @GuillaumeGomez

This was always questionable, and removing it doesn't fail any tests, so
I think this was not affecting the behavior. It dates all the way back
to the very first commit of rustdoc: 268f3f0
@jyn514 jyn514 added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. I-compilemem Issue: Problems and improvements with respect to memory usage during compilation. labels Dec 15, 2020
@rust-highfive

This comment has been minimized.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 15, 2020
This decreases the size of `Item` from 680 to 616 bytes. It also does a
lot less work since it no longer has to copy as much.
@jyn514
Copy link
Member Author

jyn514 commented Dec 15, 2020

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion

@bors
Copy link
Contributor

bors commented Dec 15, 2020

⌛ Trying commit a16904f with merge 7ca105dfbe1b53e0dfb4c59e00a8a9defd0f7ea5...

@bors
Copy link
Contributor

bors commented Dec 15, 2020

☀️ Try build successful - checks-actions
Build commit: 7ca105dfbe1b53e0dfb4c59e00a8a9defd0f7ea5 (7ca105dfbe1b53e0dfb4c59e00a8a9defd0f7ea5)

@rust-timer
Copy link
Collaborator

Queued 7ca105dfbe1b53e0dfb4c59e00a8a9defd0f7ea5 with parent 8b3ee82, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking try commit (7ca105dfbe1b53e0dfb4c59e00a8a9defd0f7ea5): comparison url.

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying rollup- to bors.

Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up.

@bors rollup=never
@rustbot modify labels: +S-waiting-on-review -S-waiting-on-perf

@jyn514
Copy link
Member Author

jyn514 commented Dec 15, 2020

Max of -0.5% on instruction count, max of -5% on max-rss. So less than I hoped, but definitely worth landing I think.

@GuillaumeGomez
Copy link
Member

Thanks!

@bors: r+

@bors
Copy link
Contributor

bors commented Dec 15, 2020

📌 Commit a16904f 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 15, 2020
@bors
Copy link
Contributor

bors commented Dec 15, 2020

⌛ Testing commit a16904f with merge f76ecd0...

@bors
Copy link
Contributor

bors commented Dec 15, 2020

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

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 15, 2020
@bors bors merged commit f76ecd0 into rust-lang:master Dec 15, 2020
@rustbot rustbot added this to the 1.50.0 milestone Dec 15, 2020
@jyn514 jyn514 deleted the smaller-name branch December 15, 2020 21:44
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Dec 17, 2020
Use more symbols in rustdoc

Builds on rust-lang#80044 and should not be merged before.

I want to test if this is actually faster before merging it, there was a lot of `to_string()` calls so I'm not sure it will actually help. That means I have to wait for 80044 to get merged before running perf.

r? `@ghost`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-compilemem Issue: Problems and improvements with respect to memory usage during compilation. 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-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.

6 participants