Skip to content

Refactor the serialization code generation. - #29652

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

Refactor the serialization code generation.#29652
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_977500229

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Sep 8, 2026

Copy link
Copy Markdown

Refactor the serialization code generation.

The code emitting proto serialization functionality used to be a state machine greedily forming the chunks and emitting them in a single loop. At the same time other generators in message.cc follow the two-stage approach, where the chunks are formed first and only then emitted.

This change adopts the two-stage approach for the serialization generator.

The code emitting proto serialization functionality used to be a state machine greedily forming the chunks and emitting them in a single loop. At the same time other generators in message.cc follow the two-stage approach, where the chunks are formed first and only then emitted.

This change adopts the two-stage approach for the serialization generator.

PiperOrigin-RevId: 977500229
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