Misc. cleanups to librustdocs "clean" fns#142848
Misc. cleanups to librustdocs "clean" fns#142848yotamofek wants to merge 5 commits intorust-lang:mainfrom
librustdocs "clean" fns#142848Conversation
… 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. |
|
given the prev. comment, I think I can switch the review flag @rustbot author |
Small cleanups while working on bigger stuff.
Might have very slight performance improvement (408dc50 avoids a few unneeded
Clones), but I doubt they'll register on a perf run. So this is mostly just making the code (hopefully) a bit nicer.