Skip to content

Add #[inline] to some small functions #11235

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

Merged
merged 1 commit into from
Jul 14, 2025

Conversation

alexcrichton
Copy link
Member

This adds #[inline] to some functions which are otherwise not available for cross-crate inlining. These functions started being more heavily used after historical refactorings such as #10877 so this helps benchmarks which access linear memory in host functions, for example.

This adds `#[inline]` to some functions which are otherwise not
available for cross-crate inlining. These functions started being more
heavily used after historical refactorings such as bytecodealliance#10877 so this helps
benchmarks which access linear memory in host functions, for example.
@alexcrichton alexcrichton requested a review from a team as a code owner July 14, 2025 15:00
@alexcrichton alexcrichton requested review from pchickey and removed request for a team July 14, 2025 15:00
@adambratschikaye
Copy link
Contributor

This fixes the regression in #11236

@abrown abrown added this pull request to the merge queue Jul 14, 2025
Merged via the queue into bytecodealliance:main with commit 4b51827 Jul 14, 2025
42 checks passed
@alexcrichton alexcrichton deleted the add-some-inline branch July 14, 2025 17:00
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Jul 16, 2025
This adds `#[inline]` to some functions which are otherwise not
available for cross-crate inlining. These functions started being more
heavily used after historical refactorings such as bytecodealliance#10877 so this helps
benchmarks which access linear memory in host functions, for example.
alexcrichton added a commit that referenced this pull request Jul 16, 2025
This adds `#[inline]` to some functions which are otherwise not
available for cross-crate inlining. These functions started being more
heavily used after historical refactorings such as #10877 so this helps
benchmarks which access linear memory in host functions, for example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants