Skip to content

Use all the available inline capacity in SwitchTargets#159206

Closed
panstromek wants to merge 1 commit into
rust-lang:mainfrom
panstromek:make-switch-targets-inline-capacity-bigger
Closed

Use all the available inline capacity in SwitchTargets#159206
panstromek wants to merge 1 commit into
rust-lang:mainfrom
panstromek:make-switch-targets-inline-capacity-bigger

Conversation

@panstromek

Copy link
Copy Markdown
Contributor

SmallVec always has at least 16 bytes of inline capacity available on 64bit platforms, so there's no reason to not use it if we can.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 13, 2026
@panstromek

Copy link
Copy Markdown
Contributor Author

@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 13, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Jul 13, 2026
…y-bigger, r=<try>

Use all the available inline capacity in SwitchTargets
@rust-bors

rust-bors Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: d50696f (d50696f425d85afd6aefdefd88e41350487ff1d1)
Base parent: d39561c (d39561c2d2b55985d3b6331cc52403e038e7fc8b)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (d50696f): comparison URL.

Overall result: no relevant changes - no action needed

Benchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up.

@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

Results (primary 6.8%, secondary 2.1%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
6.8% [3.7%, 9.8%] 2
Regressions ❌
(secondary)
2.1% [0.9%, 3.2%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 6.8% [3.7%, 9.8%] 2

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 487.649s -> 487.104s (-0.11%)
Artifact size: 389.89 MiB -> 389.90 MiB (0.00%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 13, 2026
@panstromek panstromek closed this Jul 13, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants