Notes Float: list-scroll script below dev (includes #1147; NoteList stops per-scroll neighbour walks and in-motion text requests) #1150

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

What

Supersedes #1147 by including it (c4284474e, .wlist { contain: strict }), merged onto port/notes-float b6059927f (#1148), plus two NoteList changes that take work out of every list-scroll step:

  1. The selection's neighbours (indexOf + around, 70 notes) are a $derived of the selection and the list, so they are found when the selection or the list changes, never on a scroll. The gate's scroll found the same answer 40 times (2,440 neighbour steps).
  2. The on-screen rows' text (peek.warm) is asked for 90 ms after the rows stop changing. A selection change still asks at once. Same ids, same order (neighbours first, then on-screen rows), so what is asked for is unchanged; only a scroll in motion no longer runs requests, IndexedDB writes and reply handling. On the gate's scroll: 45 batches -> 8.

Decision (no owner available at night): after a move up, a later scroll keeps asking upward first (before, any scroll flipped the direction to down). The same ids are asked for either way.

perf/budgets.json: lines at the measured sizes (hash jitter; first-paint CSS +0.03 KB from #1147's line), total = sum of the chunk lines.

Bisect of the list-script rise (3cb2fd31e -> ba1281c4b #1139 -> 376a06ec5 #1140)

Neither merge adds JS that runs during the list scroll. V8 precise coverage (call counts) over the gate's exact scroll: 3cb2fd31e, ba1281c4b and 376a06ec5 run the same 184 functions, 281,880 calls (base +1, a one-off pwa-warm). Dev 44fc0b7c4 runs 282,719, so the port already ran 0.3 % less JS per scroll than dev. The +2.17 % script of 376a06ec5 vs dev in #1147 is not code that runs during the scroll; with no extra calls it is variance (garbage collection timing, JIT). So instead of gating something in #1139/#1140, this PR removes work that dev does too, to get clearly below dev.

Numbers, gates and Safari frames: in the comments below.

🤖 Generated with Claude Code

## What Supersedes #1147 by including it (`c4284474e`, `.wlist { contain: strict }`), merged onto `port/notes-float` b6059927f (#1148), plus two NoteList changes that take work out of every list-scroll step: 1. **The selection's neighbours** (`indexOf` + `around`, 70 notes) are a `$derived` of the selection and the list, so they are found when the selection or the list changes, never on a scroll. The gate's scroll found the same answer 40 times (2,440 neighbour steps). 2. **The on-screen rows' text** (`peek.warm`) is asked for 90 ms after the rows stop changing. A selection change still asks at once. Same ids, same order (neighbours first, then on-screen rows), so what is asked for is unchanged; only a scroll in motion no longer runs requests, IndexedDB writes and reply handling. On the gate's scroll: 45 batches -> 8. Decision (no owner available at night): after a move up, a later scroll keeps asking upward first (before, any scroll flipped the direction to down). The same ids are asked for either way. `perf/budgets.json`: lines at the measured sizes (hash jitter; first-paint CSS +0.03 KB from #1147's line), total = sum of the chunk lines. ## Bisect of the list-script rise (3cb2fd31e -> ba1281c4b #1139 -> 376a06ec5 #1140) Neither merge adds JS that runs during the list scroll. V8 precise coverage (call counts) over the gate's exact scroll: 3cb2fd31e, ba1281c4b and 376a06ec5 run **the same 184 functions, 281,880 calls** (base +1, a one-off pwa-warm). Dev 44fc0b7c4 runs 282,719, so the port already ran 0.3 % less JS per scroll than dev. The +2.17 % script of 376a06ec5 vs dev in #1147 is not code that runs during the scroll; with no extra calls it is variance (garbage collection timing, JIT). So instead of gating something in #1139/#1140, this PR removes work that dev does too, to get clearly below dev. Numbers, gates and Safari frames: in the comments below. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The list's size comes from top/bottom/width, it already clips and already holds its
fixed descendants, so the pixels are the same (checked light and dark). Rows the
windowed list adds or drops while scrolling now lay out inside the list only:
list-scroll layout about 10 % lower on the perf host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
budgets: chunk lines at the measured sizes after the list's containment (hash jitter, no JS change); total = sum
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
c4284474ed
index.js raw is byte-identical to the 6a3ef2e83 head; only hashed import names
changed, and brotli-11 packs them differently. first_js_brotli (240) untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NoteList: the comments state the measured scroll-time savings
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
7610b4dcbd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Owner

Evidence: list-scroll SCRIPT vs dev, bisect, gates (list-script lane)

Verdict: list-scroll script at this head (f2) is below dev. 4 sessions pooled: −2.95 % ±1.95 (interval −4.9 … −1.0); without session 1 (it overlapped infraternal J711 on backup01, 01:44–01:57 UTC): −2.79 % ±2.15 (−4.9 … −0.6). Below dev in every single session (−3.4, −2.8, −3.4, −2.2 %). List CPU −17.1 %, typing CPU/key −3.5 % vs dev. Against the same build without the NoteList change (nb = port/notes-float b6059927f + #1147): script −5.24 % ±2.05, typing flat (−0.09 % ±0.31). nb itself is +2.44 % ±1.68 over dev, so without this change the release rule would hold it.

Setup

perf-01 under perf-turn (FRONT, authorised), perf-02 lock held by an hd01 watcher only while the turn marker existed. Gate driver typing-list-cpu.mjs unchanged (4× throttle, 40 wheel steps, 1440×900). Server debug binary fd197ff8 (crates identical from 3cb2fd31e to this head and dev). Own fixture copy (~/nfsc-perf/fixture). Dists built on dev-01, relayed via hd01, tar sha256 checked on both ends. Each sample normalised to its own session's mean of the reference arm; ± = 1.96 se. Arms: ob 3cb2fd31e, sw ba1281c4b (#1139), base 376a06ec5 (#1140), nb b6059927f+#1147 with the old NoteList, f1 neighbours-only change, f2 this PR's code (bfd6ad504; later commits are budgets and comments), dev/dev2 44fc0b7c4 (dev's head 6c50dd99c has no web change since). Turn 1: 8 arms × 5 × 3 sessions; its session 3 died at its first sample (server up, driver health check timed out), so turn 2 ran 2 more sessions of nb/f1/f2/dev/dev2 × 5.

Pooled (b1, b2 = turn 1; c1, c2 = turn 2)

=== vs dev, sessions b1.json,b2.json,c1.json,c2.json; mean % ±1.96se
nb   n=20 list_script  +2.44±1.68  list_cpu -16.06±0.95  list_layout -12.63±2.11  list_recalc  +6.33±2.73  typing_cpu/k  -3.40±0.36  typing_script/k -12.15±1.33
f1   n=20 list_script  -0.84±2.80  list_cpu -16.05±1.42  list_layout -10.72±2.64  list_recalc  +6.26±3.01  typing_cpu/k  -3.57±0.52  typing_script/k -13.25±2.18
f2   n=20 list_script  -2.95±1.95  list_cpu -17.07±1.19  list_layout -11.70±1.57  list_recalc  +3.87±2.39  typing_cpu/k  -3.49±0.30  typing_script/k -13.42±1.27
dev2 n=20 list_script  -1.11±2.29  list_cpu  +2.06±2.28  list_layout  -0.86±2.45  list_recalc  +3.54±3.82  typing_cpu/k  +0.49±0.56  typing_script/k  +2.10±2.32
dev  n=20 list_script  +0.00±1.78  list_cpu  +0.00±1.94  list_layout  +0.00±1.63  list_recalc  +0.00±3.12  typing_cpu/k  +0.00±0.42  typing_script/k  +0.00±1.37
=== vs dev, sessions b2.json,c1.json,c2.json; mean % ±1.96se
nb   n=15 list_script  +2.00±1.98  list_cpu -15.19±0.81  list_layout -13.50±2.37  list_recalc  +5.33±2.55  typing_cpu/k  -3.25±0.43  typing_script/k -11.44±1.52
f1   n=15 list_script  +0.19±3.00  list_cpu -14.73±1.26  list_layout  -9.06±2.46  list_recalc  +7.63±3.35  typing_cpu/k  -3.14±0.47  typing_script/k -11.45±1.96
f2   n=15 list_script  -2.79±2.15  list_cpu -15.94±0.97  list_layout -11.52±1.85  list_recalc  +3.88±2.47  typing_cpu/k  -3.33±0.30  typing_script/k -12.95±1.35
dev2 n=15 list_script  -0.63±2.12  list_cpu  +4.25±1.59  list_layout  -0.31±2.22  list_recalc  +4.84±2.72  typing_cpu/k  +0.77±0.49  typing_script/k  +3.02±2.11
dev  n=15 list_script  +0.00±2.12  list_cpu  +0.00±2.40  list_layout  +0.00±2.15  list_recalc  +0.00±3.62  typing_cpu/k  +0.00±0.54  typing_script/k  +0.00±1.68
=== vs nb, sessions b1.json,b2.json,c1.json,c2.json; mean % ±1.96se
nb   n=20 list_script  +0.00±1.52  list_cpu  +0.00±0.52  list_layout  +0.00±2.27  list_recalc  +0.00±2.39  typing_cpu/k  +0.00±0.26  typing_script/k  +0.00±1.16
f1   n=20 list_script  -3.15±3.02  list_cpu  -0.02±0.86  list_layout  +2.28±3.49  list_recalc  -0.00±3.09  typing_cpu/k  -0.17±0.46  typing_script/k  -1.26±2.22
f2   n=20 list_script  -5.24±2.05  list_cpu  -1.21±0.82  list_layout  +1.12±2.12  list_recalc  -2.28±2.35  typing_cpu/k  -0.09±0.31  typing_script/k  -1.42±1.38
dev2 n=20 list_script  -3.45±2.29  list_cpu +21.55±2.10  list_layout +13.53±3.05  list_recalc  -2.57±3.72  typing_cpu/k  +4.03±0.62  typing_script/k +16.26±2.77
dev  n=20 list_script  -2.36±1.85  list_cpu +19.19±2.60  list_layout +14.50±2.11  list_recalc  -5.91±3.06  typing_cpu/k  +3.53±0.51  typing_script/k +13.89±1.90
=== vs nb, sessions b2.json,c1.json,c2.json; mean % ±1.96se
nb   n=15 list_script  +0.00±1.81  list_cpu  +0.00±0.55  list_layout  +0.00±2.71  list_recalc  +0.00±2.33  typing_cpu/k  +0.00±0.31  typing_script/k  +0.00±1.40
f1   n=15 list_script  -1.74±3.25  list_cpu  +0.53±0.91  list_layout  +5.15±2.95  list_recalc  +2.18±3.08  typing_cpu/k  +0.12±0.47  typing_script/k  +0.02±2.34
f2   n=15 list_script  -4.68±2.28  list_cpu  -0.88±0.88  list_layout  +2.31±2.31  list_recalc  -1.37±2.35  typing_cpu/k  -0.08±0.36  typing_script/k  -1.68±1.50
dev2 n=15 list_script  -2.58±2.05  list_cpu +22.93±1.85  list_layout +15.26±2.57  list_recalc  -0.47±2.43  typing_cpu/k  +4.16±0.65  typing_script/k +16.38±2.82
dev  n=15 list_script  -1.95±2.20  list_cpu +17.93±2.98  list_layout +15.62±2.54  list_recalc  -5.04±3.51  typing_cpu/k  +3.36±0.65  typing_script/k +12.96±2.20

Per session, list script vs dev: b1 nb +3.8 f1 −3.9 f2 −3.4 dev2 −2.5 · b2 nb +0.9 f1 +0.1 f2 −2.8 dev2 −1.9 · c1 nb +4.0 f1 −2.4 f2 −3.4 dev2 +0.4 · c2 nb +1.1 f1 +2.9 f2 −2.2 dev2 −0.4.

Bisect (turn 1, sessions b1+b2)

=== vs dev, sessions b1.json,b2.json; mean % ±1.96se
ob   n=10 list_script  +1.88±4.19  list_cpu -18.55±2.23  list_layout  -1.89±3.31  list_recalc  +3.31±5.56  typing_cpu/k  -4.16±0.63  typing_script/k -15.23±2.85
sw   n=10 list_script  -2.39±3.17  list_cpu -19.05±1.79  list_layout  -5.20±2.99  list_recalc  -1.16±5.40  typing_cpu/k  -4.04±0.47  typing_script/k -14.91±2.32
base n=10 list_script  +0.16±2.83  list_cpu -18.03±1.80  list_layout  -0.08±2.96  list_recalc  +0.71±3.36  typing_cpu/k  -3.59±0.42  typing_script/k -12.74±1.70
nb   n=10 list_script  +2.33±2.88  list_cpu -17.09±1.26  list_layout -12.19±3.02  list_recalc  +6.39±4.98  typing_cpu/k  -3.95±0.39  typing_script/k -13.82±1.50
dev2 n=10 list_script  -2.20±3.50  list_cpu  +0.32±4.24  list_layout  -0.86±3.99  list_recalc  +1.48±6.67  typing_cpu/k  +0.28±1.01  typing_script/k  +1.65±4.17
dev  n=10 list_script  +0.00±2.51  list_cpu  +0.00±3.14  list_layout  +0.00±2.38  list_recalc  +0.00±4.52  typing_cpu/k  +0.00±0.41  typing_script/k  +0.00±1.79

None of ob/sw/base stands out beyond the control's noise. The deterministic count settles it: V8 precise coverage (call counts) over the gate's exact scroll (dev-01, unminified, ×2): 3cb2fd31e, ba1281c4b and 376a06ec5 run the same 184 functions, 281,880 calls; dev 282,719. So neither #1139 (switcher) nor #1140 (tables) runs anything during the list scroll, and the port already ran fewer calls than dev. With this PR: 267,707 calls (−5 %): around/step/indexOf/noteAt gone (2,440 steps), peek.warm 40 → 4, flush/action/IndexedDB store 45 → 8. Sampling profile (×4, 4× throttle, dev-01, shares only): native fetch 49 → 23 ms, IndexedDB transaction 13 → 5, put 11 → 8; the settle timer adds setTimeout+clearTimeout +7 ms.

Real Safari (macos-01, atomic Mac lock, Safari + safaridriver quit on exit; 400 seeded notes so the list is windowed; 8 cycles ABAB per session; median worst ms / frames >33 / ≥50)

  • s1: scroll nb 25.5 / 1 / 0, f2 24.5 / 0 / 0; idle 23.5 / 24.0, none >33.
  • s2: scroll nb 24.0 / 0 / 0, f2 23.0 / 0 / 0; idle 23.5 / 23.0, none >33.
    Memory: Pages free ~1.1 GB (under the 2 GB line), but free + inactive + speculative ≈ 3.6 GB, memory_pressure 76 % free, swap 0; no stalls in either arm. No std window announced on infraternal#260 during either run.

Gates

gate command result
chromium-1440/390 (dev-01) CALTERNAL_BIN=<fd197ff8> bunx playwright test app-switch phone-foot notes-float-phone window-layout tables tables-parity list-catch-up list-chrome list-fit list-search keys-no-motion --project=chromium-1440 --project=chromium-390 --workers=2 131 passed, 68 skipped, 1 failed: list-chrome.spec.ts:103 (gallery, 390): then --repeat-each=10 --workers=1 10/10 on this head and 10/10 on the base (flake under 2 workers, not blocking per the flaky rule)
webkit-1440/390 (dev-02) same specs, --project=webkit-1440 --project=webkit-390 132 passed, 68 skipped, exit 0
svelte-check bun run check 0 errors, 19 warnings
vitest bunx vitest run 34 files, 319 passed
bundle perf/web.sh --bundle-only --gate on the f2 dist at 1fa9d0334 exit 0; first JS 231.956 ≤ 240; total 585.343 ≤ 586.985

Decisions

  • No gate added to #1139 or #1140: nothing of theirs runs during the scroll (call counts identical).
  • A scroll after moving the selection up keeps asking for upward neighbours first (before: any scroll reset the direction to down). Same ids asked for either way.
  • Budget lines raised to measured sizes (hash jitter, first-paint CSS +0.03 KB from #1147's contain: strict); total = sum.
## Evidence: list-scroll SCRIPT vs dev, bisect, gates (list-script lane) **Verdict: list-scroll script at this head (`f2`) is below dev.** 4 sessions pooled: **−2.95 % ±1.95** (interval −4.9 … −1.0); without session 1 (it overlapped infraternal J711 on backup01, 01:44–01:57 UTC): **−2.79 % ±2.15** (−4.9 … −0.6). Below dev in every single session (−3.4, −2.8, −3.4, −2.2 %). List CPU −17.1 %, typing CPU/key −3.5 % vs dev. Against the same build without the NoteList change (`nb` = port/notes-float b6059927f + #1147): script −5.24 % ±2.05, typing flat (−0.09 % ±0.31). `nb` itself is **+2.44 % ±1.68 over dev**, so without this change the release rule would hold it. ### Setup perf-01 under `perf-turn` (FRONT, authorised), perf-02 lock held by an hd01 watcher only while the turn marker existed. Gate driver `typing-list-cpu.mjs` unchanged (4× throttle, 40 wheel steps, 1440×900). Server debug binary `fd197ff8` (crates identical from 3cb2fd31e to this head and dev). Own fixture copy (`~/nfsc-perf/fixture`). Dists built on dev-01, relayed via hd01, tar sha256 checked on both ends. Each sample normalised to its own session's mean of the reference arm; ± = 1.96 se. Arms: `ob` 3cb2fd31e, `sw` ba1281c4b (#1139), `base` 376a06ec5 (#1140), `nb` b6059927f+#1147 with the old NoteList, `f1` neighbours-only change, `f2` this PR's code (bfd6ad504; later commits are budgets and comments), `dev`/`dev2` 44fc0b7c4 (dev's head 6c50dd99c has no web change since). Turn 1: 8 arms × 5 × 3 sessions; its session 3 died at its first sample (server up, driver health check timed out), so turn 2 ran 2 more sessions of nb/f1/f2/dev/dev2 × 5. ### Pooled (b1, b2 = turn 1; c1, c2 = turn 2) ``` === vs dev, sessions b1.json,b2.json,c1.json,c2.json; mean % ±1.96se nb n=20 list_script +2.44±1.68 list_cpu -16.06±0.95 list_layout -12.63±2.11 list_recalc +6.33±2.73 typing_cpu/k -3.40±0.36 typing_script/k -12.15±1.33 f1 n=20 list_script -0.84±2.80 list_cpu -16.05±1.42 list_layout -10.72±2.64 list_recalc +6.26±3.01 typing_cpu/k -3.57±0.52 typing_script/k -13.25±2.18 f2 n=20 list_script -2.95±1.95 list_cpu -17.07±1.19 list_layout -11.70±1.57 list_recalc +3.87±2.39 typing_cpu/k -3.49±0.30 typing_script/k -13.42±1.27 dev2 n=20 list_script -1.11±2.29 list_cpu +2.06±2.28 list_layout -0.86±2.45 list_recalc +3.54±3.82 typing_cpu/k +0.49±0.56 typing_script/k +2.10±2.32 dev n=20 list_script +0.00±1.78 list_cpu +0.00±1.94 list_layout +0.00±1.63 list_recalc +0.00±3.12 typing_cpu/k +0.00±0.42 typing_script/k +0.00±1.37 === vs dev, sessions b2.json,c1.json,c2.json; mean % ±1.96se nb n=15 list_script +2.00±1.98 list_cpu -15.19±0.81 list_layout -13.50±2.37 list_recalc +5.33±2.55 typing_cpu/k -3.25±0.43 typing_script/k -11.44±1.52 f1 n=15 list_script +0.19±3.00 list_cpu -14.73±1.26 list_layout -9.06±2.46 list_recalc +7.63±3.35 typing_cpu/k -3.14±0.47 typing_script/k -11.45±1.96 f2 n=15 list_script -2.79±2.15 list_cpu -15.94±0.97 list_layout -11.52±1.85 list_recalc +3.88±2.47 typing_cpu/k -3.33±0.30 typing_script/k -12.95±1.35 dev2 n=15 list_script -0.63±2.12 list_cpu +4.25±1.59 list_layout -0.31±2.22 list_recalc +4.84±2.72 typing_cpu/k +0.77±0.49 typing_script/k +3.02±2.11 dev n=15 list_script +0.00±2.12 list_cpu +0.00±2.40 list_layout +0.00±2.15 list_recalc +0.00±3.62 typing_cpu/k +0.00±0.54 typing_script/k +0.00±1.68 === vs nb, sessions b1.json,b2.json,c1.json,c2.json; mean % ±1.96se nb n=20 list_script +0.00±1.52 list_cpu +0.00±0.52 list_layout +0.00±2.27 list_recalc +0.00±2.39 typing_cpu/k +0.00±0.26 typing_script/k +0.00±1.16 f1 n=20 list_script -3.15±3.02 list_cpu -0.02±0.86 list_layout +2.28±3.49 list_recalc -0.00±3.09 typing_cpu/k -0.17±0.46 typing_script/k -1.26±2.22 f2 n=20 list_script -5.24±2.05 list_cpu -1.21±0.82 list_layout +1.12±2.12 list_recalc -2.28±2.35 typing_cpu/k -0.09±0.31 typing_script/k -1.42±1.38 dev2 n=20 list_script -3.45±2.29 list_cpu +21.55±2.10 list_layout +13.53±3.05 list_recalc -2.57±3.72 typing_cpu/k +4.03±0.62 typing_script/k +16.26±2.77 dev n=20 list_script -2.36±1.85 list_cpu +19.19±2.60 list_layout +14.50±2.11 list_recalc -5.91±3.06 typing_cpu/k +3.53±0.51 typing_script/k +13.89±1.90 === vs nb, sessions b2.json,c1.json,c2.json; mean % ±1.96se nb n=15 list_script +0.00±1.81 list_cpu +0.00±0.55 list_layout +0.00±2.71 list_recalc +0.00±2.33 typing_cpu/k +0.00±0.31 typing_script/k +0.00±1.40 f1 n=15 list_script -1.74±3.25 list_cpu +0.53±0.91 list_layout +5.15±2.95 list_recalc +2.18±3.08 typing_cpu/k +0.12±0.47 typing_script/k +0.02±2.34 f2 n=15 list_script -4.68±2.28 list_cpu -0.88±0.88 list_layout +2.31±2.31 list_recalc -1.37±2.35 typing_cpu/k -0.08±0.36 typing_script/k -1.68±1.50 dev2 n=15 list_script -2.58±2.05 list_cpu +22.93±1.85 list_layout +15.26±2.57 list_recalc -0.47±2.43 typing_cpu/k +4.16±0.65 typing_script/k +16.38±2.82 dev n=15 list_script -1.95±2.20 list_cpu +17.93±2.98 list_layout +15.62±2.54 list_recalc -5.04±3.51 typing_cpu/k +3.36±0.65 typing_script/k +12.96±2.20 ``` Per session, list script vs dev: b1 nb +3.8 f1 −3.9 **f2 −3.4** dev2 −2.5 · b2 nb +0.9 f1 +0.1 **f2 −2.8** dev2 −1.9 · c1 nb +4.0 f1 −2.4 **f2 −3.4** dev2 +0.4 · c2 nb +1.1 f1 +2.9 **f2 −2.2** dev2 −0.4. ### Bisect (turn 1, sessions b1+b2) ``` === vs dev, sessions b1.json,b2.json; mean % ±1.96se ob n=10 list_script +1.88±4.19 list_cpu -18.55±2.23 list_layout -1.89±3.31 list_recalc +3.31±5.56 typing_cpu/k -4.16±0.63 typing_script/k -15.23±2.85 sw n=10 list_script -2.39±3.17 list_cpu -19.05±1.79 list_layout -5.20±2.99 list_recalc -1.16±5.40 typing_cpu/k -4.04±0.47 typing_script/k -14.91±2.32 base n=10 list_script +0.16±2.83 list_cpu -18.03±1.80 list_layout -0.08±2.96 list_recalc +0.71±3.36 typing_cpu/k -3.59±0.42 typing_script/k -12.74±1.70 nb n=10 list_script +2.33±2.88 list_cpu -17.09±1.26 list_layout -12.19±3.02 list_recalc +6.39±4.98 typing_cpu/k -3.95±0.39 typing_script/k -13.82±1.50 dev2 n=10 list_script -2.20±3.50 list_cpu +0.32±4.24 list_layout -0.86±3.99 list_recalc +1.48±6.67 typing_cpu/k +0.28±1.01 typing_script/k +1.65±4.17 dev n=10 list_script +0.00±2.51 list_cpu +0.00±3.14 list_layout +0.00±2.38 list_recalc +0.00±4.52 typing_cpu/k +0.00±0.41 typing_script/k +0.00±1.79 ``` None of `ob`/`sw`/`base` stands out beyond the control's noise. The deterministic count settles it: **V8 precise coverage (call counts) over the gate's exact scroll** (dev-01, unminified, ×2): 3cb2fd31e, ba1281c4b and 376a06ec5 run the same 184 functions, 281,880 calls; dev 282,719. So neither #1139 (switcher) nor #1140 (tables) runs anything during the list scroll, and the port already ran fewer calls than dev. With this PR: 267,707 calls (−5 %): `around`/`step`/`indexOf`/`noteAt` gone (2,440 steps), `peek.warm` 40 → 4, `flush`/`action`/IndexedDB `store` 45 → 8. Sampling profile (×4, 4× throttle, dev-01, shares only): native `fetch` 49 → 23 ms, IndexedDB `transaction` 13 → 5, `put` 11 → 8; the settle timer adds `setTimeout`+`clearTimeout` +7 ms. ### Real Safari (macos-01, atomic Mac lock, Safari + safaridriver quit on exit; 400 seeded notes so the list is windowed; 8 cycles ABAB per session; median worst ms / frames >33 / ≥50) - s1: scroll nb 25.5 / 1 / 0, f2 24.5 / 0 / 0; idle 23.5 / 24.0, none >33. - s2: scroll nb 24.0 / 0 / 0, f2 23.0 / 0 / 0; idle 23.5 / 23.0, none >33. Memory: `Pages free` ~1.1 GB (under the 2 GB line), but free + inactive + speculative ≈ 3.6 GB, `memory_pressure` 76 % free, swap 0; no stalls in either arm. No std window announced on infraternal#260 during either run. ### Gates | gate | command | result | |---|---|---| | chromium-1440/390 (dev-01) | `CALTERNAL_BIN=<fd197ff8> bunx playwright test app-switch phone-foot notes-float-phone window-layout tables tables-parity list-catch-up list-chrome list-fit list-search keys-no-motion --project=chromium-1440 --project=chromium-390 --workers=2` | 131 passed, 68 skipped, 1 failed: `list-chrome.spec.ts:103` (gallery, 390): then `--repeat-each=10 --workers=1` **10/10 on this head and 10/10 on the base** (flake under 2 workers, not blocking per the flaky rule) | | webkit-1440/390 (dev-02) | same specs, `--project=webkit-1440 --project=webkit-390` | 132 passed, 68 skipped, exit 0 | | svelte-check | `bun run check` | 0 errors, 19 warnings | | vitest | `bunx vitest run` | 34 files, 319 passed | | bundle | `perf/web.sh --bundle-only --gate` on the f2 dist at 1fa9d0334 | exit 0; first JS 231.956 ≤ 240; total 585.343 ≤ 586.985 | ### Decisions - No gate added to #1139 or #1140: nothing of theirs runs during the scroll (call counts identical). - A scroll after moving the selection up keeps asking for upward neighbours first (before: any scroll reset the direction to down). Same ids asked for either way. - Budget lines raised to measured sizes (hash jitter, first-paint CSS +0.03 KB from #1147's `contain: strict`); total = sum.
Author
Owner

Merged into port/notes-float (eea6bd463) and on to dev (02be2b2db) by the orchestrator. Closing.

Merged into `port/notes-float` (eea6bd463) and on to dev (02be2b2db) by the orchestrator. Closing.
kayg closed this pull request 2026-11-15 03:48:03 +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!1150
No description provided.