Skip to content

UPSTREAM PR #27109: Add CodedInputStream.newInstanceWithAliasing factory methods#159

Open
loci-dev wants to merge 1 commit into
mainfrom
loci/pr-27109-feat-coded-input-aliasing-factory
Open

UPSTREAM PR #27109: Add CodedInputStream.newInstanceWithAliasing factory methods#159
loci-dev wants to merge 1 commit into
mainfrom
loci/pr-27109-feat-coded-input-aliasing-factory

Conversation

@loci-dev
Copy link
Copy Markdown

Note

Source pull request: protocolbuffers/protobuf#27109

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.
@loci-review
Copy link
Copy Markdown

loci-review Bot commented Apr 26, 2026

No meaningful performance changes were detected across 10164 analyzed functions in the following binaries: build.protoc-stable.

💬 Questions? Tag @loci-dev

@loci-dev loci-dev force-pushed the main branch 7 times, most recently from f292971 to 1fdfb93 Compare April 29, 2026 07:16
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.

2 participants