Repository navigation
perf(evidence): fuse streamed JSON token handling - #1694
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Oct 11, 2026
3 tasks done
This was referenced Oct 11, 2026
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 evidence JSON files currently create async iterator and stream work for every parser token. On an 18.54 MB snapshot exported from a real Ghidra analysis, that work dominates the sampled allocation window.
Fuse the upstream parser, scalar packing, heap admission, and upstream value assembler into synchronous token stages. File reads remain asynchronous and cancellation-aware. Keep the existing capacity estimates, UTF-8 validation, scalar limits, file identity checks, and typed failures. Declare the existing stream-chain 4.2.6 as a direct runtime dependency. Add a public CLI container-expansion regression plus a same-process successful read after rejection.
Validation:
0efc3a3dpassed 30 focused tests, including malformed input, cancellation, long strings, the existing 512 MiB whitespace control, and the new container admission/recovery case.check:fast, Knip, and whole-repository formatting passed on the final head. A real-evidence Linux CLI/MCP replay also passed on the benchmarked candidate; its reader source and compiled file are byte-identical to the final head.The larger 83 MB native snapshot capacity case from #1680 is not established as fixed by the 18.54 MB measurements. Keep that issue open.
Refs #1065, #1680.