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] Remove unneeded clone() calls for derive_id #114204

Merged
merged 1 commit into from
Jul 30, 2023

Conversation

GuillaumeGomez
Copy link
Member

I realized we were cloning values before passing them to derive_id where they are cloned again, which isn't great. Since they'll be cloned anyway, let's allow to pass both by reference and by value.

r? @notriddle

@rustbot rustbot added 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 29, 2023
@GuillaumeGomez
Copy link
Member Author

I'm not sure it'll impact performance but better confirm:

@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 29, 2023
@bors
Copy link
Contributor

bors commented Jul 29, 2023

⌛ Trying commit f65dc084ceb7f562668ea249391b138d1303dfe6 with merge 5234c646c74d83bfccd3f219d68d867dd0b877f8...

@bors
Copy link
Contributor

bors commented Jul 29, 2023

☀️ Try build successful - checks-actions
Build commit: 5234c646c74d83bfccd3f219d68d867dd0b877f8 (5234c646c74d83bfccd3f219d68d867dd0b877f8)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (5234c646c74d83bfccd3f219d68d867dd0b877f8): comparison URL.

Overall result: no relevant changes - 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 benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.6% [-0.6%, -0.6%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.6% [-0.6%, -0.6%] 1

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: 653.409s -> 652.628s (-0.12%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 30, 2023
@GuillaumeGomez
Copy link
Member Author

I'm surprised it's all marked as "non-relevant".

For instructions count:

Screenshot from 2023-07-30 13-23-50

For RSS:

image

@Kobzol
Copy link
Contributor

Kobzol commented Jul 30, 2023

It's based both on the historical data and the magnitude of change. So here it was determined that these benchmarks were "noisy enough" recently and that the current change was not large enough in magnitude for it to be deemed relevant.

@GuillaumeGomez
Copy link
Member Author

I see, makes sense. Thanks for the clarification.

@notriddle
Copy link
Contributor

It’s fine. Removing unnecessary clones is just good practice anyway.

@bors r+

@bors
Copy link
Contributor

bors commented Jul 30, 2023

📌 Commit 148a0c1 has been approved by notriddle

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 30, 2023
@bors
Copy link
Contributor

bors commented Jul 30, 2023

⌛ Testing commit 148a0c1 with merge a8be6e0...

@bors
Copy link
Contributor

bors commented Jul 30, 2023

☀️ Test successful - checks-actions
Approved by: notriddle
Pushing a8be6e0 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jul 30, 2023
@bors bors merged commit a8be6e0 into rust-lang:master Jul 30, 2023
11 checks passed
@rustbot rustbot added this to the 1.73.0 milestone Jul 30, 2023
@GuillaumeGomez GuillaumeGomez deleted the remove-unneeded-clone-calls branch July 30, 2023 21:17
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (a8be6e0): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

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

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
2.7% [2.7%, 2.7%] 1
Regressions ❌
(secondary)
3.1% [3.1%, 3.1%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.7% [2.7%, 2.7%] 1

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: 651.166s -> 651.129s (-0.01%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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