Skip to content

add #[inline] to small functions - #169

Merged
nbdd0121 merged 1 commit into
mainfrom
dev/inline
Aug 3, 2026
Merged

add #[inline] to small functions#169
nbdd0121 merged 1 commit into
mainfrom
dev/inline

Conversation

@nbdd0121

@nbdd0121 nbdd0121 commented Aug 3, 2026

Copy link
Copy Markdown
Member

Currently pin-init crate is missing many inline annotations. They are all generic so still get inlined in normal builds, but are not inlined in -C opt-level=s build. Mark these functions as #[inline] so they are considered for inlining regardless.

Currently `pin-init` crate is missing many inline annotations. They are all
generic so still get inlined in normal builds, but are not inlined in
`-C opt-level=s` build. Mark these functions as `#[inline]` so they are
considered for inlining regardless.

Signed-off-by: Gary Guo <gary@garyguo.net>
@nbdd0121
nbdd0121 merged commit 32d3eeb into main Aug 3, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant