Repository navigation
perf(domain): reuse canonical JSON key encodings - #1687
Merged
Merged
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
5 of 16 tasks
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.
Canonical hashing is a measurable REA-owned hotspot in an actual small-target CLI CPU profile. Repeated graph keys were JSON-encoded for every object and each member allocated a temporary value frame. This change reuses exact key encodings within one existing 8,192-code-unit buffer quantum and processes member values directly. Fallback encoding, canonical bytes, cooperative yields and complete results remain available.
It also repairs a reproduced domain error: when a pending property is deleted during a cooperative pause, its object frame was discarded and later properties were omitted from the digest. The iterator now resumes that object. This is a domain-continuation reproduction; normal sealed application graphs are immutable.
Refs #1065. Existing #904/#994 already solved per-fragment crypto-update crossings; this follow-up addresses key encoding and iterator allocation in the newer cooperative digest. No currently open overlapping digest PR was found with
ghbefore publication.Validation uses pinned Flameox 0.2.9, Node 24.18.0/npm 11.16.0, Linux, CPUs 13/15 and nice 10. One local heavy lane runs at a time, with a 768 MiB outer Node heap, 2 GiB family RSS guard, 2 GiB host reserve and 90-second per-command guard. The target JavaScript is analyzed statically and never executed.
canonicalJsonDigestSteps. Profiles guide this experiment; they are not speedup percentages or source-analyzer-child attribution.Local target/profile/experiment receipts live in
/tmp/rea-flameox-performance-20261011; generated runtime, catalog and temporary tool environment are excluded from the commit. No real Hopper/Ghidra, browser, Electron target runtime, full Notion/Obsidian, or previously failing full Bun-directory behavior is claimed. Final-source CI is pending.