Notes Float: chase the script-only residuals (typing walk, glass style cache, glass scroll listeners) (#1088) #1116

Closed
kayg wants to merge 0 commits from port/notes-float-residuals into port/notes-float
Owner

Chases the script-only residuals of the Notes Float window layout (#1088, handover comment 95206 §3–4). Into port/notes-float (4f0b58327).

What was actually behind them

Typing (dev-01 V8 sampling, dev 796d80cba vs integration, 6 runs each):

  1. CodeMirror's visiblePixelRange (every key) walks up from contentDOM, jumping from an absolute box to its offsetParent and stopping at a fixed one. Integration: 13 boxes, dev 12.
  2. Adaptive glass: every finished busy map called notifyBehindChanged("map"), which bumped epoch and threw away every glass's cached computed style. Each editor scroll end while typing therefore re-read getComputedStyle for every glass (glassTokens, theme inks).

List scroll: not Svelte. The "template effect on scroll" in the handover was a 0-based profiler line pointing at the scroll handler, which costs the same in both builds. Deterministic counts over the gate's scroll (40 wheel steps) are identical in all builds: 40 scroll events, 672 childList, 132 tabindex, 40 style writes, 0 glass recomputes. The only extra JS entries were adaptive glass's document capture listeners, scroll (noteScrollBox) and scrollend (onScrollEnd): 40 + 40 dispatches and 22 burst timers that dev doesn't have.

Changes (one commit each)

  • 872143720 page root position: fixed (was absolute): the CM walk ends there, 8 boxes (dev 12). Geometry unchanged: page card and view boxes, and full-page PNGs, are byte-identical to the integration head at 1440 and 1000.

  • 4f02c9692 a finished map no longer drops the glasses' style cache. resize drops it itself (it used to through the map). Scroll end, glass and map only change rectangles and busyness.

  • f141dbc60 scroll-end verdict cached per scroller (boxGen, rectGen).

  • 462f12418 removed the per-event scroll capture listener. A scroller with no verdict yet is judged after the next paint (a frame, then a task), when layout is clean.

  • d3d0f9a4a scrollend listened to only on scrollers that sit under an on-screen glass. They're found by hit test at each glass's 4 grid points in the recompute's read phase, only when boxGen moved (never at a scroll end). Scrollers are chosen by overflow style, so an editor that starts scrolling later is already covered. The document keeps a non-capture listener for its own scroll. A finished map no longer bumps boxGen. Verified: the note list's scroll path now has no glass listener, and the JS entries during the gate's scroll match dev in count.

  • 78d4d5647 spec: scrolling the page under its glass still asks for an answer (guards the scroller discovery).

  • 786b67e01 merge port/notes-float 200db310d (slice 4). 60525fc6e budgets at the measured sizes (index +0.186 KB brotli, total −0.07).

Gates (full tables and commands in the comments)

  • Pre-merge, pooled ×3 vs dev: typing CPU −0.30 % (ctl −0.30), typing script −2.70 % [−4.82, −0.58] (ctl −1.11), list CPU −3.29 %, list script +1.87 % [−0.13, +3.87] (ctl +0.06). Integration was +0.72 / +2.31 / −3.08 / +4.38 %.
  • Merged head, one turn ×3: typing CPU −3.30 %, typing script −13.47 %, list CPU −17.13 % (mostly slice 4), list script +2.70 % vs ctl +1.55 %.
  • Decision for kayg: typing script is now below dev. List script went from ≈ +3.4 % net to ≈ +1.2–1.8 % net, with no extra JS work left to remove: the JS entries match dev in count, and what's left is the same work taking slightly longer.
  • Specs: green before the merge; after it, only failures that 200db310d has too (keys-no-motion ×4, switching:135) plus the flaky pane-transition:431 (3/30 here, 4/30 on 200db310d).

🤖 Generated with Claude Code

Chases the script-only residuals of the Notes Float window layout (#1088, handover comment 95206 §3–4). Into `port/notes-float` (4f0b58327). ## What was actually behind them **Typing** (dev-01 V8 sampling, dev 796d80cba vs integration, 6 runs each): 1. CodeMirror's `visiblePixelRange` (every key) walks up from `contentDOM`, jumping from an absolute box to its `offsetParent` and stopping at a fixed one. Integration: 13 boxes, dev 12. 2. Adaptive glass: every finished busy map called `notifyBehindChanged("map")`, which bumped `epoch` and threw away every glass's cached computed style. Each editor scroll end while typing therefore re-read `getComputedStyle` for every glass (`glassTokens`, theme inks). **List scroll**: not Svelte. The "template effect on scroll" in the handover was a 0-based profiler line pointing at the scroll handler, which costs the same in both builds. Deterministic counts over the gate's scroll (40 wheel steps) are identical in all builds: 40 scroll events, 672 childList, 132 `tabindex`, 40 `style` writes, 0 glass recomputes. The only extra JS entries were adaptive glass's document capture listeners, `scroll` (`noteScrollBox`) and `scrollend` (`onScrollEnd`): 40 + 40 dispatches and 22 burst timers that dev doesn't have. ## Changes (one commit each) - `872143720` page root `position: fixed` (was absolute): the CM walk ends there, **8 boxes** (dev 12). Geometry unchanged: page card and view boxes, and full-page PNGs, are byte-identical to the integration head at 1440 and 1000. - `4f02c9692` a finished map no longer drops the glasses' style cache. `resize` drops it itself (it used to through the map). Scroll end, glass and map only change rectangles and busyness. - `f141dbc60` scroll-end verdict cached per scroller (`boxGen`, `rectGen`). - `462f12418` removed the per-event `scroll` capture listener. A scroller with no verdict yet is judged after the next paint (a frame, then a task), when layout is clean. - `d3d0f9a4a` `scrollend` listened to only on scrollers that sit under an on-screen glass. They're found by hit test at each glass's 4 grid points in the recompute's read phase, only when `boxGen` moved (never at a scroll end). Scrollers are chosen by overflow style, so an editor that starts scrolling later is already covered. The document keeps a non-capture listener for its own scroll. A finished map no longer bumps `boxGen`. Verified: the note list's scroll path now has no glass listener, and the JS entries during the gate's scroll match dev in count. - `78d4d5647` spec: scrolling the page under its glass still asks for an answer (guards the scroller discovery). - `786b67e01` merge `port/notes-float` 200db310d (slice 4). `60525fc6e` budgets at the measured sizes (index +0.186 KB brotli, total −0.07). ## Gates (full tables and commands in the comments) - Pre-merge, pooled ×3 vs dev: typing CPU −0.30 % (ctl −0.30), **typing script −2.70 %** [−4.82, −0.58] (ctl −1.11), list CPU −3.29 %, list script +1.87 % [−0.13, +3.87] (ctl +0.06). Integration was +0.72 / +2.31 / −3.08 / +4.38 %. - Merged head, one turn ×3: typing CPU −3.30 %, typing script −13.47 %, list CPU −17.13 % (mostly slice 4), list script +2.70 % vs ctl +1.55 %. - **Decision for kayg:** typing script is now below dev. List script went from ≈ +3.4 % net to ≈ +1.2–1.8 % net, with no extra JS work left to remove: the JS entries match dev in count, and what's left is the same work taking slightly longer. - Specs: green before the merge; after it, only failures that 200db310d has too (keys-no-motion ×4, switching:135) plus the flaky pane-transition:431 (3/30 here, 4/30 on 200db310d). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
visiblePixelRange jumps from an absolute box to its offsetParent and stops at a
fixed one: the walk is 8 boxes instead of 13 (dev's layout: 12).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
notifyBehindChanged("map") bumped the epoch, so every scroll end (the editor
scrolling while typing) re-read every glass's computed style. A map changes only
busyness; resize now drops the cache itself (it did through the map before).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Scrolling the note list ends a burst every 80 ms and each judgement walked every
glass; the answer is now kept per scroller while boxGen and rectGen hold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The capture scroll listener (noteScrollBox) ran script on every scroll event of
every scroller. Scroll ends alone now judge; a scroller with no cached verdict
reads its box after the next paint, when layout is clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A document capture scrollend listener called into script at every scroll step of
every scroller, the note list included (40 dispatches + 22 timers per gate scroll,
dev has none). Scrollers under an on-screen glass are found by hit test in the
recompute's read phase, only when boxGen moved, and get their own listener; the
document keeps a non-capture one for its own scroll. A finished map no longer
bumps boxGen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test(glass): scrolling the page under its glass still asks for an answer
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
78d4d5647b
The glass now listens only on scrollers under it; this guards the page's own
scroller staying one of them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Owner

Evidence (interim): residuals lane, 11-14

Pooled gate (perf-01, both perf locks, 8 per arm per session, dev = 796d80cba, dev2 = same build as control)

Harness: typing-list-cpu.mjs from ops/orchestrator/harness/notes-float/perf-01, run as ~/bin/perf-turn nfr-<s> ~/nfr-perf/run3s.sh <s> <dist> from this lane's own dir ~/nfr-perf. perf-02's lock is taken by an hd01 watcher only after the driver asks, inside its turn. Mean ratio vs dev [95 % CI].

Head d3d0f9a4a, sessions 1+2 (session 3 queued):

session 1 typing_cpu_m:+0.1%(ctl -0.1) typing_scrip:-1.2%(ctl -0.5) list_cpu_ms:-3.9%(ctl -0.6) list_script_:+3.5%(ctl -0.8) list_layout_:-1.7%(ctl +0.5) list_recalc_:+1.1%(ctl -1.7)
session 2 typing_cpu_m:-1.1%(ctl -0.8) typing_scrip:-6.6%(ctl -1.5) list_cpu_ms:-2.8%(ctl -0.9) list_script_:+1.4%(ctl +0.7) list_layout_:-5.6%(ctl -2.0) list_recalc_:-6.7%(ctl -3.3)
typing_cpu_ms_per_key      new: -0.51% [-1.31, +0.30]  dev2: -0.43% [-0.99, +0.12]
typing_script_ms_per_key   new: -3.89% [-6.60, -1.19]  dev2: -1.00% [-3.27, +1.27]
list_cpu_ms                new: -3.32% [-5.48, -1.17]  dev2: -0.72% [-2.35, +0.91]
list_script_ms             new: +2.42% [-0.12, +4.95]  dev2: -0.09% [-1.77, +1.60]
list_layout_ms             new: -3.67% [-6.22, -1.12]  dev2: -0.73% [-3.18, +1.72]
list_recalc_ms             new: -2.79% [-6.54, +0.95]  dev2: -2.51% [-5.92, +0.90]

f141dbc60 (walk + epoch + verdict cache), 1 session:

session 1 typing_cpu_m:-0.9%(ctl -1.0) typing_scrip:-4.4%(ctl -2.6) list_cpu_ms:-2.7%(ctl -0.5) list_script_:+2.0%(ctl -0.4) list_layout_:-1.7%(ctl +0.7) list_recalc_:-3.4%(ctl -3.8)
typing_cpu_ms_per_key      new: -0.86% [-2.09, +0.36]  dev2: -1.02% [-2.00, -0.03]
typing_script_ms_per_key   new: -4.45% [-9.60, +0.71]  dev2: -2.63% [-6.85, +1.59]
list_cpu_ms                new: -2.70% [-5.74, +0.34]  dev2: -0.45% [-3.03, +2.13]
list_script_ms             new: +1.98% [-1.89, +5.85]  dev2: -0.42% [-4.62, +3.78]
list_layout_ms             new: -1.68% [-6.60, +3.23]  dev2: +0.66% [-3.33, +4.66]
list_recalc_ms             new: -3.42% [-7.51, +0.67]  dev2: -3.82% [-8.81, +1.18]

462f12418 (+ scroll listener removed), 1 session:

session 3 typing_cpu_m:+0.3%(ctl -0.5) typing_scrip:-1.0%(ctl -0.6) list_cpu_ms:-2.5%(ctl +0.5) list_script_:+2.6%(ctl +0.4) list_layout_:-1.1%(ctl +0.7) list_recalc_:-1.5%(ctl +3.1)
typing_cpu_ms_per_key      new: +0.31% [-0.58, +1.21]  dev2: -0.47% [-0.75, -0.20]
typing_script_ms_per_key   new: -1.01% [-2.20, +0.19]  dev2: -0.56% [-1.44, +0.32]
list_cpu_ms                new: -2.50% [-4.34, -0.65]  dev2: +0.49% [-0.86, +1.83]
list_script_ms             new: +2.63% [+0.56, +4.70]  dev2: +0.36% [-2.16, +2.88]
list_layout_ms             new: -1.08% [-3.04, +0.88]  dev2: +0.74% [-1.22, +2.69]
list_recalc_ms             new: -1.54% [-7.49, +4.41]  dev2: +3.06% [-2.32, +8.43]

Baseline from #1088 (integration vs dev, pooled ×3): typing script +2.31 % (control +0.22), list script +4.38 % (control +1.00), typing CPU +0.72 % (control +0.66), list CPU −3.08 %.

Deterministic checks (dev-01)

  • CodeMirror walk from contentDOM (its own rule): dev 12, integration 13, head 8 (stops at the fixed main.editor-pane).
  • Page geometry: page card 17,17,1406,866, view 590,25,825,850 at 1440 (and the 1000 equivalents) are identical, and the full-page PNG hashes match the integration head (c6b7a59f79a5 @1440, d14d09f2b33d @1000).
  • List scroll (gate's 40 wheel steps, note open): DOM mutations identical in dev, integration and f141 (672 childList, 132 tabindex, 40 style, 40 scroll events, 0 glass recomputes).
  • Top-level JS entries during the list scroll (CDP trace, 3 runs): integration had +40 scrollend dispatches into onScrollEnd and +22 burst timers vs dev; the head has none (the document's scrollend is non-capture, and the list scroller has no glass listener). In the gate's own state (no note open) every entry count matches dev. Per-entry times on dev-01 swing ±6 % run to run (devm 744 vs head 788 ms, then 516 vs 496 ms), so they can't resolve a 3 % gap; a trace turn on perf-01 is queued after session 3.
  • Typing profile (V8 sampling): visiblePixelRange went from +121 µs/unit over dev to −155; the per-scroll-end glassTokens/getPropertyValue style re-reads are gone. The busy-map walk itself (stepWalk) still runs at each editor scroll end, by design.

Specs (head 78d4d5647, retries 0, --workers=1, server built from 4f0b58327)

dev-01 chromium-1440 99 passed (incl. the new page-scroll spec) · chromium-390 96 · chrome-contrast 32 · contrast 9 · dev-02 webkit-1440 95 · webkit-390 92 · sidebar-band-chromium 13 · sidebar-band-webkit 16. svelte-check: 0 errors.

## Evidence (interim): residuals lane, 11-14 ### Pooled gate (perf-01, both perf locks, 8 per arm per session, dev = 796d80cba, dev2 = same build as control) Harness: `typing-list-cpu.mjs` from `ops/orchestrator/harness/notes-float/perf-01`, run as `~/bin/perf-turn nfr-<s> ~/nfr-perf/run3s.sh <s> <dist>` from this lane's own dir `~/nfr-perf`. perf-02's lock is taken by an hd01 watcher only after the driver asks, inside its turn. Mean ratio vs dev [95 % CI]. **Head d3d0f9a4a, sessions 1+2** (session 3 queued): ``` session 1 typing_cpu_m:+0.1%(ctl -0.1) typing_scrip:-1.2%(ctl -0.5) list_cpu_ms:-3.9%(ctl -0.6) list_script_:+3.5%(ctl -0.8) list_layout_:-1.7%(ctl +0.5) list_recalc_:+1.1%(ctl -1.7) session 2 typing_cpu_m:-1.1%(ctl -0.8) typing_scrip:-6.6%(ctl -1.5) list_cpu_ms:-2.8%(ctl -0.9) list_script_:+1.4%(ctl +0.7) list_layout_:-5.6%(ctl -2.0) list_recalc_:-6.7%(ctl -3.3) typing_cpu_ms_per_key new: -0.51% [-1.31, +0.30] dev2: -0.43% [-0.99, +0.12] typing_script_ms_per_key new: -3.89% [-6.60, -1.19] dev2: -1.00% [-3.27, +1.27] list_cpu_ms new: -3.32% [-5.48, -1.17] dev2: -0.72% [-2.35, +0.91] list_script_ms new: +2.42% [-0.12, +4.95] dev2: -0.09% [-1.77, +1.60] list_layout_ms new: -3.67% [-6.22, -1.12] dev2: -0.73% [-3.18, +1.72] list_recalc_ms new: -2.79% [-6.54, +0.95] dev2: -2.51% [-5.92, +0.90] ``` **f141dbc60 (walk + epoch + verdict cache), 1 session:** ``` session 1 typing_cpu_m:-0.9%(ctl -1.0) typing_scrip:-4.4%(ctl -2.6) list_cpu_ms:-2.7%(ctl -0.5) list_script_:+2.0%(ctl -0.4) list_layout_:-1.7%(ctl +0.7) list_recalc_:-3.4%(ctl -3.8) typing_cpu_ms_per_key new: -0.86% [-2.09, +0.36] dev2: -1.02% [-2.00, -0.03] typing_script_ms_per_key new: -4.45% [-9.60, +0.71] dev2: -2.63% [-6.85, +1.59] list_cpu_ms new: -2.70% [-5.74, +0.34] dev2: -0.45% [-3.03, +2.13] list_script_ms new: +1.98% [-1.89, +5.85] dev2: -0.42% [-4.62, +3.78] list_layout_ms new: -1.68% [-6.60, +3.23] dev2: +0.66% [-3.33, +4.66] list_recalc_ms new: -3.42% [-7.51, +0.67] dev2: -3.82% [-8.81, +1.18] ``` **462f12418 (+ scroll listener removed), 1 session:** ``` session 3 typing_cpu_m:+0.3%(ctl -0.5) typing_scrip:-1.0%(ctl -0.6) list_cpu_ms:-2.5%(ctl +0.5) list_script_:+2.6%(ctl +0.4) list_layout_:-1.1%(ctl +0.7) list_recalc_:-1.5%(ctl +3.1) typing_cpu_ms_per_key new: +0.31% [-0.58, +1.21] dev2: -0.47% [-0.75, -0.20] typing_script_ms_per_key new: -1.01% [-2.20, +0.19] dev2: -0.56% [-1.44, +0.32] list_cpu_ms new: -2.50% [-4.34, -0.65] dev2: +0.49% [-0.86, +1.83] list_script_ms new: +2.63% [+0.56, +4.70] dev2: +0.36% [-2.16, +2.88] list_layout_ms new: -1.08% [-3.04, +0.88] dev2: +0.74% [-1.22, +2.69] list_recalc_ms new: -1.54% [-7.49, +4.41] dev2: +3.06% [-2.32, +8.43] ``` Baseline from #1088 (integration vs dev, pooled ×3): typing script +2.31 % (control +0.22), list script +4.38 % (control +1.00), typing CPU +0.72 % (control +0.66), list CPU −3.08 %. ### Deterministic checks (dev-01) - CodeMirror walk from `contentDOM` (its own rule): dev 12, integration 13, **head 8** (stops at the fixed `main.editor-pane`). - Page geometry: page card `17,17,1406,866`, view `590,25,825,850` at 1440 (and the 1000 equivalents) are identical, and the full-page PNG hashes match the integration head (c6b7a59f79a5 @1440, d14d09f2b33d @1000). - List scroll (gate's 40 wheel steps, note open): DOM mutations identical in dev, integration and f141 (672 childList, 132 tabindex, 40 style, 40 scroll events, 0 glass recomputes). - Top-level JS entries during the list scroll (CDP trace, 3 runs): integration had **+40 `scrollend` dispatches into `onScrollEnd` and +22 burst timers** vs dev; the head has none (the document's `scrollend` is non-capture, and the list scroller has no glass listener). In the gate's own state (no note open) every entry count matches dev. Per-entry times on dev-01 swing ±6 % run to run (devm 744 vs head 788 ms, then 516 vs 496 ms), so they can't resolve a 3 % gap; a trace turn on perf-01 is queued after session 3. - Typing profile (V8 sampling): `visiblePixelRange` went from +121 µs/unit over dev to −155; the per-scroll-end `glassTokens`/`getPropertyValue` style re-reads are gone. The busy-map walk itself (`stepWalk`) still runs at each editor scroll end, by design. ### Specs (head 78d4d5647, retries 0, `--workers=1`, server built from 4f0b58327) dev-01 chromium-1440 99 passed (incl. the new page-scroll spec) · chromium-390 96 · chrome-contrast 32 · contrast 9 · dev-02 webkit-1440 95 · webkit-390 92 · sidebar-band-chromium 13 · sidebar-band-webkit 16. svelte-check: 0 errors.
Author
Owner

Final gates: residuals lane (11-14)

Branch effect, pre-merge: head d3d0f9a4a vs dev 796d80cba, pooled ×3 (perf-01, both locks, 8 per arm, dev2 = control)

session 1 typing_cpu_m:+0.1%(ctl -0.1) typing_scrip:-1.2%(ctl -0.5) list_cpu_ms:-3.9%(ctl -0.6) list_script_:+3.5%(ctl -0.8) list_layout_:-1.7%(ctl +0.5) list_recalc_:+1.1%(ctl -1.7)
session 2 typing_cpu_m:-1.1%(ctl -0.8) typing_scrip:-6.6%(ctl -1.5) list_cpu_ms:-2.8%(ctl -0.9) list_script_:+1.4%(ctl +0.7) list_layout_:-5.6%(ctl -2.0) list_recalc_:-6.7%(ctl -3.3)
session 4 typing_cpu_m:+0.1%(ctl -0.0) typing_scrip:-0.3%(ctl -1.3) list_cpu_ms:-3.2%(ctl -1.5) list_script_:+0.8%(ctl +0.3) list_layout_:+2.7%(ctl +0.3) list_recalc_:-1.8%(ctl +0.2)
typing_cpu_ms_per_key      new: -0.30% [-0.89, +0.29]  dev2: -0.30% [-0.73, +0.13]
typing_script_ms_per_key   new: -2.70% [-4.82, -0.58]  dev2: -1.11% [-2.96, +0.74]
list_cpu_ms                new: -3.29% [-5.01, -1.56]  dev2: -0.98% [-2.39, +0.44]
list_script_ms             new: +1.87% [-0.13, +3.87]  dev2: +0.06% [-1.61, +1.73]
list_layout_ms             new: -1.55% [-4.47, +1.37]  dev2: -0.38% [-2.50, +1.73]
list_recalc_ms             new: -2.46% [-5.45, +0.54]  dev2: -1.60% [-4.62, +1.42]
metric integration 4f0b58327 (#1088) this branch
typing CPU +0.72 % (ctl +0.66) −0.30 % (ctl −0.30), at dev
typing script +2.31 % (ctl +0.22) −2.70 % [−4.82, −0.58] (ctl −1.11), below dev
list CPU −3.08 % −3.29 % [−5.01, −1.56]
list script +4.38 % (ctl +1.00), ≈ +3.4 % net +1.87 % [−0.13, +3.87] (ctl +0.06), ≈ +1.8 % net

Final measurement: merged head 786b67e01 / 60525fc6e (port/notes-float 200db310d merged in), one turn (PERF_TURN_FRONT=1, authorised by the orchestrator), 3 sessions

session 1 typing_cpu_m:-3.1%(ctl -0.2) typing_scrip:-13.2%(ctl -0.1) list_cpu_ms:-18.8%(ctl -0.5) list_script_:+2.3%(ctl +0.4) list_layout_:+0.8%(ctl +3.4) list_recalc_:+0.3%(ctl +0.4)
session 2 typing_cpu_m:-3.4%(ctl -0.2) typing_scrip:-13.5%(ctl -0.9) list_cpu_ms:-15.8%(ctl +0.3) list_script_:+3.2%(ctl +2.2) list_layout_:-0.5%(ctl +0.1) list_recalc_:+2.8%(ctl +1.1)
session 3 typing_cpu_m:-3.3%(ctl +0.1) typing_scrip:-13.7%(ctl -0.5) list_cpu_ms:-16.7%(ctl +0.1) list_script_:+2.5%(ctl +2.1) list_layout_:+0.8%(ctl +2.1) list_recalc_:+1.9%(ctl +3.9)
typing_cpu_ms_per_key      new: -3.30% [-3.41, -3.18]  dev2: -0.09% [-0.30, +0.12]
typing_script_ms_per_key   new: -13.47% [-13.89, -13.06]  dev2: -0.52% [-1.14, +0.09]
list_cpu_ms                new: -17.13% [-17.95, -16.31]  dev2: -0.03% [-1.50, +1.44]
list_script_ms             new: +2.70% [+1.52, +3.88]  dev2: +1.55% [+0.15, +2.95]
list_layout_ms             new: +0.37% [-1.23, +1.97]  dev2: +1.86% [-0.09, +3.81]
list_recalc_ms             new: +1.65% [-0.15, +3.46]  dev2: +1.81% [-0.05, +3.67]

Most of the large typing and list CPU drops come from the merged slice 4 (#1100), not from this branch. List script: +2.70 % vs control +1.55 %, so ≈ +1.2 % net.

The rest of the list-script residual

Not found as extra work: during the gate's list scroll, the head's top-level JS entries (scroll, wheel, pointer, timers, microtasks, observers) match dev in count, and DOM mutations are identical. What remains is the same JS taking slightly longer. My best guess (unproven) is the window layout's larger DOM making the nested style work in the scroll handler (scrollTop read) and the Svelte flush cost a little more. dev-01's run-to-run swing (±6 %) can't resolve it, and the perf-01 trace step in the final turn failed at browser start (no FONTCONFIG_FILE in the trace script), so it wasn't re-taken.

Bundle

index 229.227 KB brotli (+0.186 vs integration: the scroller watcher), notes-visibility-apply 0.563 (hash-name artefact), total brotli 544.936 (−0.07). Budgets bumped to the measured sizes in 60525fc6e.

Specs on the merged head 60525fc6e (retries 0)

  • dev-01: chromium-1440 94 passed / 5 failed, chromium-390 95 / 1, chrome-contrast 32, contrast 9, sidebar-band-chromium 13.
  • dev-02: webkit-1440 91 / 4, webkit-390 92, sidebar-band-webkit 16.
  • The failures are pre-existing on port/notes-float 200db310d (same server binary, same projects): keys-no-motion :217 and :234 ×3 in both browsers (div.gl.instant (--fade) keeps a transition), and switching:135 (chromium-1440) fail identically there.
  • pane-transition:431 (chromium-390) is flaky on both heads: --repeat-each=30 gave 3/30 failed here and 4/30 on 200db310d. Needs a stability issue.
  • Before the merge (78d4d5647) every targeted project passed, including the new page-scroll spec.
## Final gates: residuals lane (11-14) ### Branch effect, pre-merge: head d3d0f9a4a vs dev 796d80cba, pooled ×3 (perf-01, both locks, 8 per arm, dev2 = control) ``` session 1 typing_cpu_m:+0.1%(ctl -0.1) typing_scrip:-1.2%(ctl -0.5) list_cpu_ms:-3.9%(ctl -0.6) list_script_:+3.5%(ctl -0.8) list_layout_:-1.7%(ctl +0.5) list_recalc_:+1.1%(ctl -1.7) session 2 typing_cpu_m:-1.1%(ctl -0.8) typing_scrip:-6.6%(ctl -1.5) list_cpu_ms:-2.8%(ctl -0.9) list_script_:+1.4%(ctl +0.7) list_layout_:-5.6%(ctl -2.0) list_recalc_:-6.7%(ctl -3.3) session 4 typing_cpu_m:+0.1%(ctl -0.0) typing_scrip:-0.3%(ctl -1.3) list_cpu_ms:-3.2%(ctl -1.5) list_script_:+0.8%(ctl +0.3) list_layout_:+2.7%(ctl +0.3) list_recalc_:-1.8%(ctl +0.2) typing_cpu_ms_per_key new: -0.30% [-0.89, +0.29] dev2: -0.30% [-0.73, +0.13] typing_script_ms_per_key new: -2.70% [-4.82, -0.58] dev2: -1.11% [-2.96, +0.74] list_cpu_ms new: -3.29% [-5.01, -1.56] dev2: -0.98% [-2.39, +0.44] list_script_ms new: +1.87% [-0.13, +3.87] dev2: +0.06% [-1.61, +1.73] list_layout_ms new: -1.55% [-4.47, +1.37] dev2: -0.38% [-2.50, +1.73] list_recalc_ms new: -2.46% [-5.45, +0.54] dev2: -1.60% [-4.62, +1.42] ``` | metric | integration 4f0b58327 (#1088) | this branch | |---|---|---| | typing CPU | +0.72 % (ctl +0.66) | **−0.30 %** (ctl −0.30), at dev | | typing script | +2.31 % (ctl +0.22) | **−2.70 % [−4.82, −0.58]** (ctl −1.11), below dev | | list CPU | −3.08 % | **−3.29 % [−5.01, −1.56]** | | list script | +4.38 % (ctl +1.00), ≈ +3.4 % net | +1.87 % [−0.13, +3.87] (ctl +0.06), ≈ +1.8 % net | ### Final measurement: merged head 786b67e01 / 60525fc6e (`port/notes-float` 200db310d merged in), one turn (`PERF_TURN_FRONT=1`, authorised by the orchestrator), 3 sessions ``` session 1 typing_cpu_m:-3.1%(ctl -0.2) typing_scrip:-13.2%(ctl -0.1) list_cpu_ms:-18.8%(ctl -0.5) list_script_:+2.3%(ctl +0.4) list_layout_:+0.8%(ctl +3.4) list_recalc_:+0.3%(ctl +0.4) session 2 typing_cpu_m:-3.4%(ctl -0.2) typing_scrip:-13.5%(ctl -0.9) list_cpu_ms:-15.8%(ctl +0.3) list_script_:+3.2%(ctl +2.2) list_layout_:-0.5%(ctl +0.1) list_recalc_:+2.8%(ctl +1.1) session 3 typing_cpu_m:-3.3%(ctl +0.1) typing_scrip:-13.7%(ctl -0.5) list_cpu_ms:-16.7%(ctl +0.1) list_script_:+2.5%(ctl +2.1) list_layout_:+0.8%(ctl +2.1) list_recalc_:+1.9%(ctl +3.9) typing_cpu_ms_per_key new: -3.30% [-3.41, -3.18] dev2: -0.09% [-0.30, +0.12] typing_script_ms_per_key new: -13.47% [-13.89, -13.06] dev2: -0.52% [-1.14, +0.09] list_cpu_ms new: -17.13% [-17.95, -16.31] dev2: -0.03% [-1.50, +1.44] list_script_ms new: +2.70% [+1.52, +3.88] dev2: +1.55% [+0.15, +2.95] list_layout_ms new: +0.37% [-1.23, +1.97] dev2: +1.86% [-0.09, +3.81] list_recalc_ms new: +1.65% [-0.15, +3.46] dev2: +1.81% [-0.05, +3.67] ``` Most of the large typing and list CPU drops come from the merged slice 4 (#1100), not from this branch. List script: +2.70 % vs control +1.55 %, so ≈ +1.2 % net. ### The rest of the list-script residual Not found as extra work: during the gate's list scroll, the head's top-level JS entries (scroll, wheel, pointer, timers, microtasks, observers) match dev **in count**, and DOM mutations are identical. What remains is the same JS taking slightly longer. My best guess (unproven) is the window layout's larger DOM making the nested style work in the scroll handler (`scrollTop` read) and the Svelte flush cost a little more. dev-01's run-to-run swing (±6 %) can't resolve it, and the perf-01 trace step in the final turn failed at browser start (no `FONTCONFIG_FILE` in the trace script), so it wasn't re-taken. ### Bundle `index` 229.227 KB brotli (+0.186 vs integration: the scroller watcher), `notes-visibility-apply` 0.563 (hash-name artefact), total brotli 544.936 (−0.07). Budgets bumped to the measured sizes in 60525fc6e. ### Specs on the merged head 60525fc6e (retries 0) - dev-01: chromium-1440 94 passed / 5 failed, chromium-390 95 / 1, chrome-contrast 32, contrast 9, sidebar-band-chromium 13. - dev-02: webkit-1440 91 / 4, webkit-390 92, sidebar-band-webkit 16. - The failures are **pre-existing on `port/notes-float` 200db310d** (same server binary, same projects): `keys-no-motion` :217 and :234 ×3 in both browsers (`div.gl.instant (--fade)` keeps a transition), and `switching:135` (chromium-1440) fail identically there. - `pane-transition:431` (chromium-390) is flaky on both heads: `--repeat-each=30` gave 3/30 failed here and 4/30 on 200db310d. Needs a stability issue. - Before the merge (78d4d5647) every targeted project passed, including the new page-scroll spec.
Author
Owner

Merged into port/notes-float with --no-ff by the orchestrator (typing script below dev, list CPU below dev). The remaining list-script +1.9% goes to kayg as a decision. The keys-no-motion / switching:135 failures exist on 200db310d (slice 4 merge) and are handled in a separate fix lane. Closing.

Merged into `port/notes-float` with `--no-ff` by the orchestrator (typing script below dev, list CPU below dev). The remaining list-script +1.9% goes to kayg as a decision. The keys-no-motion / switching:135 failures exist on 200db310d (slice 4 merge) and are handled in a separate fix lane. Closing.
kayg closed this pull request 2026-11-14 04:10:52 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!1116
No description provided.