Repository navigation
chore(lynx-table): a retention arm, and what the ART table is counting - #222
Merged
Merged
Conversation
Issue #215 D4 asks which retention drives the ART global reference table that killed the program cell at 10,000 rows: our maps, the created arrays, or the PAPI-layer wrappers. Nothing in this benchmark can answer that — every cell runs through web-core in Chromium, which has no JNI — so this is the arithmetic that makes the device experiment cheap and the one arm that separates the candidates it cannot eliminate on paper. The arithmetic eliminates two of the three. A program's mount writes no per-node map entry at all after C20 and D1-D3, so "our maps" is already gone; and the element budget (7 per row, cross-checked against #194's own recorded call count for the cell) puts the table exactly full at ~7,308 rows, which round 1's crash time independently reproduces to within 25%. That says the table is charged about one entry per element created, which the created array and the engine's own registration explain equally well. `--retain none` is what separates them: the same PAPI call multiset with the two slot-table pushes deleted, so the arm varies how many created wrappers JavaScript holds and nothing else. If it still aborts at ~7,300 rows, no release point in Octane can fix this and D4's premise is wrong. Create-only by construction, and documented as a probe rather than a cell: with an empty slot table every delta op addresses `undefined`. The `dynamic` arm is a pure non-edit, so the floor cell every published octane-direct number was measured on stays byte-identical. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_019RsC3U39kUuLKajZANeTVy
This was referenced Aug 27, 2026
Huxpro
changed the base branch from
perf/lynx-program-event-journal
to
new-lynx
August 27, 2026 18:44
Huxpro
marked this pull request as ready for review
August 27, 2026 18:44
This was referenced Aug 27, 2026
Open
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.
Summary
Issue #215 D4 says to measure which retention drives the ART global reference
table before designing a release point — our maps, the created arrays, or the
PAPI-layer wrappers. This is that probe. No product source changes, and no
fix: D4's own text says the probe comes first.
Nothing in
benchmarks/lynx-tablecan answer the question directly. Every cellruns through
@lynx-js/web-corein Chromium, which has no JNI and no referencetable. What this adds is the arithmetic that makes the device experiment cheap,
the candidates it eliminates on paper, and the one arm that separates the rest.
Why
Two of the three candidates are already gone, for two different reasons.
Our maps were removed by the slices below this one. After #163 C20 and #215
D1–D3, a program's mount writes no per-node map entry at all:
ownedNodestakesnone,
nativeEventstakes none, and the per-ID map isnullunless the runsoverlap. Exactly one JavaScript reference per created element is left — the
array the create returned.
The rate is fixed by counting. The bench row is 7 created elements and 20 PAPI
calls; the chrome is 42 elements and 125 calls. #194 recorded the program cell's
own
__FlushElementTree.callsBeforeas[20124]in all five 1k samples, onecall from this shape's prediction of 20,125 — two independent derivations of the
same tree. The table is then exactly full at 7,308 rows, and round 1's crash
landed at ~114 s where the 1k rate puts 7,308 rows at ~93 s: 1.23 entries per
created element, within this ladder's scaling. Charged per element created, not
per entry in anything we keep.
Which leaves the created array and the engine's own registration, and every
number above is equally consistent with either.
Changes
benchmarks/lynx-table/prototype/build.mjs:--retain nonewrites an armwhose only difference is the two deleted slot-table pushes — identical PAPI
call multiset, 0 retained wrappers per row instead of 2. The
dynamicpath isa pure non-edit, so the floor cell every published
octane-directnumber wasmeasured on stays byte-identical. Create-only by construction (with an empty
slot table every delta op addresses
undefined), so--rowsis required andthe empty-table build is refused.
benchmarks/lynx-table/README.md§9: the element budget, the two readings ofround 1's crash time, what they eliminate, the three-point arm table with both
predictions written out, and the device protocol — ART table dump first,
threshold bisection second, arms third.
benchmarks/lynx-table/prototype/README.md: the arm's non-claims, in theplace that says which outputs are cells and which are not.
The decisive arm is
none: if it still aborts at ~7,300 rows, no release pointanywhere in Octane can fix this, D4's premise is wrong, and the lever is
creating fewer retained handles or #162.
Validation
pnpm format:files:checkon all three changed filespnpm sync— clean, no generated diff(
smoke.mjs --fcp):dynamicandretain-noneeach reportok fcp rows visible, which is the arm's whole functional contract.lepusCode.rootdiffer on exactly one line, verified bydiffing the built bundles.
pnpm typecheck— no TypeScript changed.pnpm test— no product source and no test changed; the repo-wide gate isreported on the PR below this one.
Risk / follow-ups
The mount ledger, redesigned: adoption bookkeeping as preprinted tables instead of per-node handwriting (#163 D-train) #215's oracle stays open and every prediction in §9 is arithmetic. The
threshold, the entries-per-element rate and the arm comparison are all
falsifiable and all unrun.
direct-self diagnostic program is 5/5 native crash" at 10k. I read that as the
octane program cell built with the direct self-time diagnostic, because
callsBefore=[20124]matches that cell's shape exactly — not as theoctane-directprototype, which retains 2 wrappers per row rather than 7 andwould change which candidate the crash points at. Worth a one-line
confirmation from whoever ran it.
retains more per element than the program cell and it also never finished, so
it may never have reached 51,200 elements inside the 180 s cutoff. §9 marks
that trap rather than spending it.
Provenance
agent-authored)Generated by Claude Code