Skip to content

Un-inline _grow to reduce register spill cost on hot path#1820

Merged
kperryua merged 1 commit intoswiftlang:experimental/new-codablefrom
kperryua:optimize-growable-encoding-bytes
Mar 16, 2026
Merged

Un-inline _grow to reduce register spill cost on hot path#1820
kperryua merged 1 commit intoswiftlang:experimental/new-codablefrom
kperryua:optimize-growable-encoding-bytes

Conversation

@kperryua
Copy link
Copy Markdown
Contributor

Un-inline _grow to reduce register spill on the hot path. This gets us about 20 MB/s boost in the Twitter encode benchmark.

@kperryua kperryua added the new-codable Related to new Swift (de)serialization APIs label Mar 16, 2026
@kperryua kperryua merged commit bcb2c30 into swiftlang:experimental/new-codable Mar 16, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-codable Related to new Swift (de)serialization APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant