-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Misc. cleanups to librustdoc
s "clean" fns
#142848
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
base: master
Are you sure you want to change the base?
Conversation
… receving `&mut Vec` to populate Also, don't clone `AttrItem`s if they don't need to be modified
…keep track of firsts
r? @notriddle rustbot has assigned @notriddle. Use |
I'm surprised by this change, but looks good to me. Let's confirm perf results and then let's r+ it. :) @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Misc. cleanups to `librustdoc`s "clean" fns Small cleanups while working on bigger stuff. Might have very slight performance improvement (408dc50 avoids a few unneeded `Clone`s), but I doubt they'll register on a perf run. So this is mostly just making the code (hopefully) a bit nicer.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (3c1d700): comparison URL. Overall result: ❌✅ regressions and improvements - no action neededBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (secondary -1.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 1.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 689.082s -> 690.29s (0.18%) |
Seems like it ends with the small perf reduction in |
Ah damn, let me see if I can keep some of the cleanups while resolving the perf hit. |
Small cleanups while working on bigger stuff.
Might have very slight performance improvement (408dc50 avoids a few unneeded
Clone
s), but I doubt they'll register on a perf run. So this is mostly just making the code (hopefully) a bit nicer.