Compile schema-specific server binary plans for fast-path binary and packed-binary encoding#598
Draft
Copilot wants to merge 7 commits into
Draft
Compile schema-specific server binary plans for fast-path binary and packed-binary encoding#598Copilot wants to merge 7 commits into
Copilot wants to merge 7 commits into
Conversation
Agent-Logs-Url: https://github.com/Telepact/telepact/sessions/4eb00668-7657-48c7-a9e1-b51a318eee50 Co-authored-by: brenbar <12563144+brenbar@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Telepact/telepact/sessions/4eb00668-7657-48c7-a9e1-b51a318eee50 Co-authored-by: brenbar <12563144+brenbar@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Telepact/telepact/sessions/4eb00668-7657-48c7-a9e1-b51a318eee50 Co-authored-by: brenbar <12563144+brenbar@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Telepact/telepact/sessions/4eb00668-7657-48c7-a9e1-b51a318eee50 Co-authored-by: brenbar <12563144+brenbar@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Telepact/telepact/sessions/4eb00668-7657-48c7-a9e1-b51a318eee50 Co-authored-by: brenbar <12563144+brenbar@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Telepact/telepact/sessions/4eb00668-7657-48c7-a9e1-b51a318eee50 Co-authored-by: brenbar <12563144+brenbar@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Telepact/telepact/sessions/4eb00668-7657-48c7-a9e1-b51a318eee50 Co-authored-by: brenbar <12563144+brenbar@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
brenbar
May 14, 2026 13:09
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Binary and packed-binary encoding were still using generic runtime tree walks even though the schema fixes most message shapes at load time. This change adds a schema-compiled server fast path that precomputes request/response binary plans and emits packed rows directly for schema-known struct arrays.
Schema-compiled binary plans
BinarySchemaPlanto compile per-schema encode/decode plans at binary-encoding construction time.struct,union, andarrayshapes instead of resolving them through the generic recursive key walker on every message.Server binary fast path
Packed-binary specialization
Maptree and then repacking it.Binary metadata cleanup
This keeps the existing wire contract intact while shifting common server binary work from generic runtime map walking to schema-specific compiled plans.