1

select Vec::from_iter impls in a const block to optimize compile times by the847...

 4 weeks ago
source link: https://github.com/rust-lang/rust/pull/122785
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation

Member

Ignoring whitespace diffs should make this easier to review.

This relies on the trick from #122301
Split out from #120682

Collaborator

r? @Amanieu

rustbot has assigned @Amanieu.
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

added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

labels

Mar 20, 2024

Member

Author

This comment has been minimized.

Contributor

⌛ Trying commit 3ff1e44 with merge 383cc68...

Contributor

☀️ Try build successful - checks-actions
Build commit: 383cc68 (383cc68dbab7c7b269e592fac8e1fe09c1375547)

This comment has been minimized.

Collaborator

Finished benchmarking commit (383cc68): 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.7% [-1.5%, -0.2%] 12
Improvements ✅
(secondary)
-2.4% [-2.4%, -2.4%] 1
All ❌✅ (primary) -0.7% [-1.5%, -0.2%] 12

Max RSS (memory usage)

Results

Cycles

Results

Binary size

Results

Bootstrap: 669.176s -> 670.043s (0.13%)
Artifact size: 312.73 MiB -> 312.77 MiB (0.01%)

the8472 reacted with hooray emoji

rustbot

removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label

Mar 20, 2024

Member

Author

Weird that a few opt binary sizes improve. This should only remove trivially-dead code. Maybe it's due to CGUs.

Member

@bors r+

Contributor

📌 Commit 3ff1e44 has been approved by Amanieu

It is now in the queue for this repository.

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

Mar 21, 2024

Contributor

⌛ Testing commit 3ff1e44 with merge 0ad927c...

Contributor

☀️ Test successful - checks-actions
Approved by: Amanieu
Pushing 0ad927c to master...

bors

added the merged-by-bors This PR was explicitly merged by bors label

Mar 21, 2024

bors

merged commit 0ad927c into

rust-lang:master

Mar 21, 2024

12 checks passed

Collaborator

Finished benchmarking commit (0ad927c): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -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.6% [-1.5%, -0.3%] 10
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.6% [-1.5%, -0.3%] 10

Max RSS (memory usage)

Results

Cycles

Results

Binary size

Results

Bootstrap: 670.84s -> 668.681s (-0.32%)
Artifact size: 314.97 MiB -> 315.01 MiB (0.01%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

Amanieu

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-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects

None yet

Milestone

1.79.0

Development

Successfully merging this pull request may close these issues.

None yet

5 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK