Skip to content

Inline hot methods on Map and in generated code#28775

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_952831816
Draft

Inline hot methods on Map and in generated code#28775
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_952831816

Conversation

@copybara-service

Copy link
Copy Markdown

Inline hot methods on Map and in generated code

These methods are one-to-three line wrappers delegating to underlying map implementations (upb/cpp_kernel). Without #[inline], the compiler will not cross crate boundaries, resulting in many physical function call overheads for otherwise fully optimal code in hot loops on Map values.

These methods are one-to-three line wrappers delegating to underlying map implementations (upb/cpp_kernel). Without `#[inline]`, the compiler will not cross crate boundaries, resulting in many physical function call overheads for otherwise fully optimal code in hot loops on Map values.

PiperOrigin-RevId: 952831816
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.

1 participant