-
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
rustdoc: use strategic ThinVec/Box to shrink clean::ItemKind
#128263
Conversation
rustbot has assigned @GuillaumeGomez. Use |
This comment has been minimized.
This comment has been minimized.
39fbcdf
to
3abf0ba
Compare
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…r=<try> rustdoc: use strategic ThinVec/Box to shrink `clean::ItemKind`
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (66af8f1): comparison URL. Overall result: ✅ 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)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 771.748s -> 770.461s (-0.17%) |
Odd that instructions are improved instead of memory, while I'd have expected it the other way around. Improvement's an improvement, I guess. |
Some changes occurred in src/librustdoc/clean/types.rs cc @camelid |
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. |
Thanks for the extra information @workingjubilee ! Thanks @notriddle for the improvement! @bors r+ rollup=iffy |
…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
Rollup merge of rust-lang#128263 - notriddle:notriddle/clean-up-again, r=GuillaumeGomez rustdoc: use strategic ThinVec/Box to shrink `clean::ItemKind`
No description provided.