Skip to content

Add CodedInputStream.newInstanceWithAliasing factory methods#27109

Open
samrod13 wants to merge 1 commit intoprotocolbuffers:mainfrom
samrod13:feat/coded-input-aliasing-factory
Open

Add CodedInputStream.newInstanceWithAliasing factory methods#27109
samrod13 wants to merge 1 commit intoprotocolbuffers:mainfrom
samrod13:feat/coded-input-aliasing-factory

Conversation

@samrod13
Copy link
Copy Markdown
Contributor

Callers who want zero-copy aliasing currently need two steps: newInstance(bytes) then enableAliasing(true). The new factories combine this into a single call, making the optimization discoverable and removing the need for manual post-construction configuration.

Callers who want zero-copy aliasing currently need two steps:
newInstance(bytes) then enableAliasing(true). The new factories
combine this into a single call, making the optimization discoverable
and removing the need for manual post-construction configuration.
@samrod13 samrod13 requested a review from a team as a code owner April 26, 2026 20:51
@samrod13 samrod13 requested review from shaod2 and removed request for a team April 26, 2026 20:51
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