Repository navigation
Description
Parent: #473
Repeated JSON.parse calls rebuild the same small ordinary object shapes through generic transition lookup and per-property publication even though parsed objects remain private until the parse succeeds. Exact attribution on the current pushed #1011 baseline records 1,984,837 shape-transition requests for each frozen representative parse row.
A bounded invocation-local prototype buffers at most Object.inline_slot_capacity fields, byte-verifies a previously prepared immutable shape chain, and bulk-initializes only a fresh private object. Reordered keys, duplicates, canonical index keys, a fifth field, or any shape mismatch fall back to the unchanged CreateDataProperty path. The cache is lazy and per Interpreter, so it crosses neither realms nor concurrent workers.
Measured prototype evidence against pushed 3abc2fc:
- representative_json: 1,984,837 -> 4,892 shape requests, exact checksum/cell/allocation/collection counts; seven-pair retired instructions 0.97806x.
- representative_json_variant: 1,984,837 -> 4,892 shape requests, exact checksum/cell/allocation/collection counts; seven-pair retired instructions 0.97500x.
- escaped-string, depth, and shallow controls remain within 0.19% retired instructions.
- reviver attribution is causally unchanged; its first seven-pair timing set is noisy, so a dedicated 15-pair control rerun remains required before landing.
Two alternatives were measured and rejected without commits: a realm-owner atomic cache caused a stable escaped-string timing regression despite neutral instructions, and stateless transition-chain replay regressed the owned rows by 0.66-1.06% instructions.
Definition of done:
- dedicated control rerun confirms no hidden regression
- exact reuse plus duplicate/index/wide/NUL fallback unit coverage
- allocation-failure sweep and deep-input behavior
- moving-GC plus no-GIL/TSan coverage
- JSON test262 and required-VM agreement
- final seven-pair checksums/counters from the exact landed binary
- small conventional commit pushed directly to main under the configured user, no trailers
Activity
glennmichael123 commentedon Sep 30, 2026
Dedicated 15-pair alternating controls resolve the noisy seven-pair sample without changing the candidate: reviver_source is 0.99887x retired instructions, 1.00058x cycles, and 1.00500x measured CPU (parent CPU RSD 14.86%, candidate 3.39%); escaped_strings is 1.00028x instructions, 1.00458x cycles, and 1.00430x CPU. All 60 runs kept exact checksums and nominal->nominal thermal state. The control gate is accepted; focused semantic/GC/TSan gates are now running under the shared 3 GB machine lock.
glennmichael123 commentedon Sep 30, 2026
Landed on
mainas b0f4b41.Exact final artifacts:
130d1a2b39378835cdee8ef8189dfd3bb77002d6f8f9634502fdcab5812d76bd5dfe3ded33a5c1f4a8d7aa09f0332d1378e59459bd9b987f5cd9c1d8290d2e60Final attribution against pushed parent 3abc2fc:
1,984,837 -> 4,892(-99.75%)Seven exact-final alternating pairs, all nominal thermal and exact checksums:
representative_json: instructions0.97548x, CPU0.96013x, wall0.96034x, cycles0.95329xrepresentative_json_variant: instructions0.97308x, CPU0.94895x, wall0.94725x, cycles0.95260x1.00019x,1.00111x,1.00077xinstructions0.99670xinstructions; its dedicated 15-pair confirmation was0.99887xinstructions and1.00058xcyclesGates:
OK truein tree and VMThe commit author and committer are both
glennmichael123 <gtorregosa@gmail.com>and the message has no trailers.