Repository navigation
test(lynx-table): what is left of the program mount is bookkeeping, not mounting - #216
Merged
Merged
Conversation
…not mounting
C18 left `program mount` the largest bucket in the program cell and the only
one still unattributed. C14-C17 split every other bucket into named sites, but
a sampling profiler names frames and `mountProgram` is one frame, so splitting
it needs ablation instead — the same instrument C13 used to price the lookup
before C18 removed it.
Two measurement-only arms, built into tagged dists from one tree and run beside
the shipping head in one window, n=15, AB/BA rotation. Neither ever lands:
each removes bookkeeping the container needs. Both leave every PAPI call where
the head makes it, so all three arms paint the same 30,000 rows.
- `c19own` drops the mount's per-node ownership journal — `ownedNodes.add` and
`programNodes.set`, per node and per painted keyed range. `program mount`
202.1 -> 69.1 (-132.9), and `first tree capture` 26.5 -> 0.0: capture's eager
half is `new Map(state.programNodes)`, and an empty map copies for free. So
the same journal is paid twice, once writing and once copying.
- `c19evt` drops the mount's per-site event journal. `event bookkeeping`
60.1 -> 15.9 (-44.2), of which `nativeEventMap` is 38.2 -> 0 — one Map
allocated per host carrying an event, holding one entry — plus 23.7 more
inside the mount for the loop and its frozen records.
What remains of `mountProgram` after both is about 45 ms: the argument array,
the spread into the compiled create, the returned-length and range checks, and
the walk frames. The other 200 is main remembering what it mounted.
Neither arm licenses deleting anything. The container still has to find every
physical node it owns, resolve a program id to a node for adoption, and clear
every listener at teardown. What the numbers license is asking whether main has
to remember it per node, when the mount already holds a program's ids and its
created nodes as two arrays in the same order.
Records: `stages/results/c163-c19-mount-30000.{json,md}`. Every number in the
README section is the record's own median and every delta the difference of
two of them; bucket medians are taken independently per rep and do not add to
the named total, which the section says rather than leaving to be noticed.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019RsC3U39kUuLKajZANeTVy
1 task done
Huxpro
force-pushed
the
test/lynx-program-journal-ablation
branch
from
August 27, 2026 00:09
9879459 to
e05cf47
Compare
Huxpro
changed the base branch from
feat/lynx-program-announcement-run
to
new-lynx
August 27, 2026 18:42
Huxpro
marked this pull request as ready for review
August 27, 2026 18:42
1 task done
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 #163, slice C19. Records and a README section only — no
packages/change.C18 left
program mountthe largest bucket in the program cell (196.6 ms at30,000 rows) and the only one still unattributed. C14–C17 split every other
bucket into named sites, but a sampling profiler names frames and
mountProgramis one frame, so splitting it into its loops needs ablation instead — the same
instrument C13 used to price the lookup before C18 removed it.
Why
Order 2 is to keep draining
off_boundarybucket by bucket.program mountisthe largest thing left in it, and designing against an unattributed lump is
guessing. This says where the 197 ms actually is, so the next slice aims rather
than guesses.
Changes
benchmarks/lynx-table/stages/results/c163-c19-mount-30000.{json,md}— athree-arm ladder in one window, n=15, AB/BA rotation.
benchmarks/lynx-table/README.md— the section that reads it, including theexact build and run commands for the two arms.
Both arms are measurement-only and neither ever lands: each removes
bookkeeping the container needs. Both leave every PAPI call exactly where the
head makes it, so all three arms paint the same 30,000 rows.
c19owndrops the mount's per-node ownership journal —state.ownedNodes.addand
state.programNodes.set, per node and per painted keyed range. It also hasthe capture-side root resolution's throw removed, because with
programNodesempty a program root no longer resolves there; that throw lives in
first tree capture, not in the bucket this arm reports.c19evtdrops the mount's per-site event journal — the loop writing{source, binding, listener}intonativeEventMap(state, node). Written asfor (index < 0)rather than deleted, so the arm differs from the head in abody that never runs and in nothing else.
What it found
c19ownc19evtThe ownership journal is paid twice.
c19own's zero infirst tree captureis not a broken arm: capture's eager half is
new Map(state.programNodes), andan empty map copies for free. So the mount writes every program node into a
Setand aMapone entry at a time, and capture then copies every entry ofthe
Mapagain — 133 ms and 26 ms of the same journal.The event journal is 68 ms, of which
nativeEventMapis 38.2 → 0: oneMapallocated per host that carries an event, holding one entry.
parseLynxNativeEventProp(6.3 → 0) resolves a plan constant once per site per row. Token encoding is not
part of it and does not move — 13.4, 13.0, 13.9 ms across the three arms.
What is left of
mountProgramafter both is about 45 ms: the argument array, thespread into the compiled create, the returned-length and range checks, and the
walk frames it pushes.
Every number is the record's own median over 15 reps and every Δ the difference
of two of them. Bucket medians are taken independently per rep and do not add to
the named-total median; the section says so rather than leaving it to be noticed.
Validation
pnpm format:checkpnpm typecheck— n/a to this diff; no TypeScript changed.pnpm test— n/a to this diff; no code changed. The suite was green onthis branch's parent (PR perf(lynx): read a program's listeners from the run, not by searching for them #214).
pnpm format:filesover the README and the record JSON — clean.pnpm sync— clean.c163-c19-mount-30000.jsonby script: 55 table claims, 0 mismatches, plusthe four site medians quoted in prose.
Risk / follow-ups
physical node it owns, resolve a program id to a node for adoption, and clear
every listener at teardown. What the numbers license is asking whether main has
to remember it per node, when the mount already holds a program's ids and its
created nodes as two arrays in the same order.
deliver: an empty journal also makes everything downstream of it cheaper. The
per-bucket rows are the attribution; the totals are not.
measures; it moves neither oracle and changes no shipped behavior.
Provenance
agent-authored)Generated by Claude Code