Repository navigation
Reduce per-query allocations for protocol messages - #270
Merged
Merged
Conversation
SeanTAllen
force-pushed
the
static-protocol-messages
branch
3 times, most recently
from
October 17, 2026 20:59
b8f44bd to
7ec8ca7
Compare
sync(), flush(), describe_portal(""), and execute_msg("", 0) produce
identical output on every call. The Pony compiler interns Array[U8] val
literals as static data in .rodata — zero allocation, single lea.
SeanTAllen
force-pushed
the
static-protocol-messages
branch
from
October 17, 2026 21:00
7ec8ca7 to
ad543d8
Compare
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.
sync(),flush(),describe_portal(""), andexecute_msg("", 0)produce identical output on every call. The Pony compiler internsArray[U8] valliterals as static data in.rodata— zero allocation per call, singleleareturning a pointer.sync()andflush()replace the entire body.describe_portal()andexecute_msg()add a fast path for the common empty-portal / zero-max-rows case; the general path is unchanged.