Repository navigation
Improve JSON read compression and SSE serialization - #319
Merged
Merged
Conversation
zerodrift
force-pushed
the
fix/json-read-transport-performance-20261118
branch
from
November 18, 2026 19:09
388ad95 to
c6fd667
Compare
Signed-off-by: zerodrift <zerodrift@users.noreply.github.com>
Signed-off-by: zerodrift <zerodrift@users.noreply.github.com>
zerodrift
force-pushed
the
fix/json-read-transport-performance-20261118
branch
from
November 18, 2026 20:25
7419bef to
b17c6ad
Compare
zerodrift
enabled auto-merge
November 18, 2026 21:22
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.
Large curve, trading and Risk reads were sent without response compression, and SSE publication serialized an already serialized result again. Enable negotiated gzip for the named read routes and write validated result JSON directly into a UTF-8 SSE envelope. Keep event flushing, publication authorization, cancellation and size limits intact.
Validation: Release API/checks and Worker builds pass. The async-read checks pass, including new semantic parity, gzip/identity negotiation, readiness-before-stream-completion and bootstrap-exclusion checks. Independent adversarial review found no remaining blockers.
A matching-projection browser comparison also checked direct, uncompressed Protobuf:
Two complete isolated runs, six primary hydration observations per mode/profile; p95 is descriptive. The 72-contract curve includes 608 observations and workspace hydration. Timings include decoding, validation, managed display formatting and rendering. These comparison prototypes share a separate projection cleanup, so the table compares encoding choices rather than claiming this patch's before/after latency. Background shape-read work varies; measured curve/history/Risk request bodies and core command counts match. Workload, environment and limits are recorded under D428 in
docs/verification.md.