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: use strategic ThinVec/Box to shrink clean::ItemKind #128263

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

notriddle
Copy link
Contributor

No description provided.

@rustbot
Copy link
Collaborator

rustbot commented Jul 27, 2024

r? @GuillaumeGomez

rustbot has assigned @GuillaumeGomez.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-rustdoc-json Area: Rustdoc JSON backend S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Jul 27, 2024
@rust-log-analyzer

This comment has been minimized.

@notriddle notriddle force-pushed the notriddle/clean-up-again branch from 39fbcdf to 3abf0ba Compare July 27, 2024 07:10
@notriddle
Copy link
Contributor Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

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

bors commented Jul 27, 2024

⌛ Trying commit 3abf0ba with merge 66af8f1...

bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 27, 2024
…r=<try>

rustdoc: use strategic ThinVec/Box to shrink `clean::ItemKind`
@bors
Copy link
Contributor

bors commented Jul 27, 2024

☀️ Try build successful - checks-actions
Build commit: 66af8f1 (66af8f13b6aea4ee11989c1cff435246f4b1e45f)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (66af8f1): comparison URL.

Overall result: ✅ 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-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.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.2% [-0.3%, -0.2%] 2
Improvements ✅
(secondary)
-0.3% [-0.3%, -0.2%] 3
All ❌✅ (primary) -0.2% [-0.3%, -0.2%] 2

Max RSS (memory usage)

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

Cycles

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

Binary size

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

Bootstrap: 771.748s -> 770.461s (-0.17%)
Artifact size: 329.08 MiB -> 329.01 MiB (-0.02%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 27, 2024
@notriddle
Copy link
Contributor Author

Odd that instructions are improved instead of memory, while I'd have expected it the other way around.

Improvement's an improvement, I guess.

@notriddle notriddle marked this pull request as ready for review July 27, 2024 17:40
@rustbot
Copy link
Collaborator

rustbot commented Jul 27, 2024

Some changes occurred in src/librustdoc/clean/types.rs

cc @camelid

@workingjubilee
Copy link
Member

Hmm. I am guessing dropping a few eightbytes, mostly off the stack, doesn't even register in "allocated stack space at peak"?

Whereas frequent copies to move data are common in Rust programs. Like, really common. ThinVec and ThinBox are the "right move" if you don't even look at them except to access them, basically.

@GuillaumeGomez
Copy link
Member

Thanks for the extra information @workingjubilee !

Thanks @notriddle for the improvement!

@bors r+ rollup=iffy

@bors
Copy link
Contributor

bors commented Jul 28, 2024

📌 Commit 3abf0ba has been approved by GuillaumeGomez

It is now in the queue for this repository.

@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 Jul 28, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 28, 2024
…iaskrgr

Rollup of 3 pull requests

Successful merges:

 - rust-lang#125889 (Add migration lint for 2024 prelude additions)
 - rust-lang#128215 (Update the reference)
 - rust-lang#128263 (rustdoc: use strategic ThinVec/Box to shrink `clean::ItemKind`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 3a4051c into rust-lang:master Jul 28, 2024
7 checks passed
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Jul 28, 2024
Rollup merge of rust-lang#128263 - notriddle:notriddle/clean-up-again, r=GuillaumeGomez

rustdoc: use strategic ThinVec/Box to shrink `clean::ItemKind`
@rustbot rustbot added this to the 1.82.0 milestone Jul 28, 2024
@notriddle notriddle deleted the notriddle/clean-up-again branch July 29, 2024 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-json Area: Rustdoc JSON backend 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