Notes Float: contain the flat list so scroll-time row layout stays inside it (#1122 list-scroll follow-up) #1147

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

What

One CSS line on the flat list column (WindowLayout.svelte): .wlist { contain: strict }. Its size comes from top/bottom/width alone, it already clips (overflow: clip) and it already holds its fixed descendants (translate), so nothing draws differently. Rows that the windowed list adds or drops while scrolling now lay out inside the list only, never in the window around it. perf/budgets.json: eight chunk lines at the measured sizes (hash jitter, explained below), total = sum of the lines.

Follow-up to #1122 (comments 96250 and 96994: list-scroll CPU +2.98 % ±0.79 over the pre-slice-3 base).

Findings (numbers and evidence in the PR comment)

  • The slice-3 list-scroll cost is real but small, and no single cause explains it. Pooled ×3 on perf-01 (18 samples per arm, dev2 control −0.5 %): head 6a3ef2e83 vs base 376a06ec5 is +1.60 % ±1.23 list CPU; a second, independent pooled ×3 run gives +1.47 % ±1.16. Against the pre-tables pair the earlier lane measured, I reproduce their number: b216ce3e8 vs 3cb2fd31e +3.72 % ±1.00. Per session, head vs base was +4.7 / +1.0 / −0.9 % and +0.3 / −0.2 / +4.4 %. Typing is flat.
  • Ruled out (each measured, none moved list CPU beyond noise): repaint of the global layer's background-attachment: fixed strip (removed in a variant), the new row tint (restored to the old colour in a variant), the list's own layer (always on / never), a composited list scroller (will-change: scroll-position, which also changes Chromium's text antialiasing, so it's out anyway), contain: paint on the list, contain: content on the scroller, and idle rows (the sidebar tree is fully drawn before the scroll starts: 32 rows at t = 0). A V8 profile of the scroll (dev vs head, unminified) runs the same NoteList scroll path, virtual rows and each-block on both builds: nothing new runs per scroll event. A main-thread timeline of the scroll on perf-01 shows the same paint count and invalidations on both arms; no event category grows by more than ~9 ms.
  • What this PR wins: contain: strict cuts list-scroll layout by 9.8 % ±2.0 vs head (consistent in all 3 sessions). List CPU is flat vs head (−0.22 % ±0.82; layout is ~75 ms of ~2.8 s), and typing is flat (−0.34 % ±0.42). So it removes real work but does not win back the CPU gap to base.
  • Release check, list-scroll script vs dev: head is +2.31 % ±1.32 over dev 44fc0b7c4. The base 376a06ec5 is already +2.17 % (the old base 3cb2fd31e was −1.31 %), so this comes before slice 3 and this PR doesn't change it (+0.75 % ±2.21 vs head). Under the brief's rule this holds the release; the orchestrator decides.

Look

Chromium (dev-01) shots after a scroll, light and dark, with and without the line: byte-identical PNGs, same row boxes. Real Safari (macos-01) light and dark, head vs this: identical outside the list column (dark: max 4/255 from the backdrop); inside the list, only the seeded rows' order differs between the two Homes. Computed contain is strict on this build and none on head. Phones render PhoneStack, not WindowLayout, so there is no phone UI change.

Gates (head 91f9c7d4a for code; c4284474e adds only budgets)

  • chromium-1440/390 (dev-01): window-layout, notes-sidebar-tree, sidebar-arrange, list-catch-up, list-chrome, list-fit, list-search, switching, keys-no-motion, --workers=1: 76 passed, 0 failed (64 skipped = the other width's projects)
  • webkit-1440/390 (dev-02), the same specs: 76 passed, 0 failed
  • bun run check (action types + svelte-check): exit 0. vitest run: 319 passed.
  • bundle gate PERF_DIST=… bash perf/web.sh --bundle-only --gate on this dist: exit 0 after the budget lines. first_js_brotli 238.357 (head dist 238.327), first_css 21.444 (+0.017, the new rule). index.js raw is byte-identical (859558 B) to head's; only hashed import names differ, and brotli-11 packs them 0.03–0.22 KB differently (code-javascript, code-python, ContactsScreen, index, PictureViewer, svelte, TasksScreen, vim; none has a code change). The unmodified head dist passes the old lines.
  • Real Safari frames (macos-01, 8 cycles ABAB, base / head / this): list scroll median worst 24.0 / 24.0 / 24.5 ms, sidebar hide 64.0 / 68.5 / 53.0, show 71.5 / 64.0 / 64.5.

Not merged (lane rule).

🤖 Generated with Claude Code

## What One CSS line on the flat list column (`WindowLayout.svelte`): `.wlist { contain: strict }`. Its size comes from top/bottom/width alone, it already clips (`overflow: clip`) and it already holds its fixed descendants (`translate`), so nothing draws differently. Rows that the windowed list adds or drops while scrolling now lay out inside the list only, never in the window around it. `perf/budgets.json`: eight chunk lines at the measured sizes (hash jitter, explained below), total = sum of the lines. Follow-up to #1122 (comments 96250 and 96994: list-scroll CPU +2.98 % ±0.79 over the pre-slice-3 base). ## Findings (numbers and evidence in the PR comment) - **The slice-3 list-scroll cost is real but small, and no single cause explains it.** Pooled ×3 on perf-01 (18 samples per arm, dev2 control −0.5 %): head `6a3ef2e83` vs base `376a06ec5` is **+1.60 % ±1.23** list CPU; a second, independent pooled ×3 run gives +1.47 % ±1.16. Against the pre-tables pair the earlier lane measured, I reproduce their number: `b216ce3e8` vs `3cb2fd31e` +3.72 % ±1.00. Per session, head vs base was +4.7 / +1.0 / −0.9 % and +0.3 / −0.2 / +4.4 %. Typing is flat. - **Ruled out** (each measured, none moved list CPU beyond noise): repaint of the global layer's `background-attachment: fixed` strip (removed in a variant), the new row tint (restored to the old colour in a variant), the list's own layer (always on / never), a composited list scroller (`will-change: scroll-position`, which also changes Chromium's text antialiasing, so it's out anyway), `contain: paint` on the list, `contain: content` on the scroller, and idle rows (the sidebar tree is fully drawn before the scroll starts: 32 rows at t = 0). A V8 profile of the scroll (dev vs head, unminified) runs the same NoteList scroll path, virtual rows and each-block on both builds: nothing new runs per scroll event. A main-thread timeline of the scroll on perf-01 shows the same paint count and invalidations on both arms; no event category grows by more than ~9 ms. - **What this PR wins:** `contain: strict` cuts list-scroll **layout by 9.8 % ±2.0** vs head (consistent in all 3 sessions). List CPU is flat vs head (−0.22 % ±0.82; layout is ~75 ms of ~2.8 s), and typing is flat (−0.34 % ±0.42). So it removes real work but **does not win back the CPU gap to base**. - **Release check, list-scroll script vs dev:** head is **+2.31 % ±1.32 over dev** `44fc0b7c4`. The base `376a06ec5` is already +2.17 % (the old base `3cb2fd31e` was −1.31 %), so this comes before slice 3 and this PR doesn't change it (+0.75 % ±2.21 vs head). Under the brief's rule this holds the release; the orchestrator decides. ## Look Chromium (dev-01) shots after a scroll, light and dark, with and without the line: **byte-identical PNGs**, same row boxes. Real Safari (macos-01) light and dark, head vs this: identical outside the list column (dark: max 4/255 from the backdrop); inside the list, only the seeded rows' order differs between the two Homes. Computed `contain` is `strict` on this build and `none` on head. Phones render PhoneStack, not WindowLayout, so there is no phone UI change. ## Gates (head `91f9c7d4a` for code; `c4284474e` adds only budgets) - chromium-1440/390 (dev-01): window-layout, notes-sidebar-tree, sidebar-arrange, list-catch-up, list-chrome, list-fit, list-search, switching, keys-no-motion, `--workers=1`: **76 passed, 0 failed** (64 skipped = the other width's projects) - webkit-1440/390 (dev-02), the same specs: **76 passed, 0 failed** - `bun run check` (action types + svelte-check): exit 0. `vitest run`: **319 passed**. - bundle gate `PERF_DIST=… bash perf/web.sh --bundle-only --gate` on this dist: **exit 0** after the budget lines. first_js_brotli 238.357 (head dist 238.327), first_css 21.444 (+0.017, the new rule). index.js raw is **byte-identical** (859558 B) to head's; only hashed import names differ, and brotli-11 packs them 0.03–0.22 KB differently (code-javascript, code-python, ContactsScreen, index, PictureViewer, svelte, TasksScreen, vim; none has a code change). The unmodified head dist passes the old lines. - Real Safari frames (macos-01, 8 cycles ABAB, base / head / this): list scroll median worst 24.0 / 24.0 / 24.5 ms, sidebar hide 64.0 / 68.5 / 53.0, show 71.5 / 64.0 / 64.5. Not merged (lane rule). 🤖 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>
Author
Owner

Evidence: list-scroll cost, perf-01 (perf-turn FRONT, authorised; perf-02 lock held by an hd01 watcher across each turn)

Server binary sha256 fd197ff8… (crates identical from 3cb2fd31e to 6a3ef2e83 and dev 44fc0b7c4). Dists built on dev-01 (fonts step), relayed via hd01, tar sha256 checked on both ends. Own fixture copy ~/nfls-perf/fixture (the shared fixture minus admin.sock, invite.key, auth.db-shm/-wal). Harness: the gate driver typing-list-cpu.mjs, plus free ports and optional injected CSS per arm. Each sample is normalised to its own session's reference mean; ± = 1.96 se.

Pooled ×3, run G (6 arms × 6 × 3 sessions)

=== vs base (3 session(s)); mean %, ±1.96se
obase    n=18 list_cpu  -1.94±1.69 (2662.0)  list_script  -3.39±2.65 (173.6)  list_layout  -1.63±1.61 (73.6)  list_recalc  -2.51±3.71 (93.4)  typing_cpu/k  +0.03±0.41 (58.4)  typing_script/k  +0.54±2.16 (6.7)
base     n=18 list_cpu  +0.00±1.41 (2716.7)  list_script  +0.00±1.68 (179.8)  list_layout  +0.00±2.15 (74.8)  list_recalc  +0.00±3.61 (96.2)  typing_cpu/k  +0.00±0.24 (58.4)  typing_script/k  +0.00±1.29 (6.7)
dev2     n=18 list_cpu +20.58±2.55 (3274.6)  list_script  -1.70±2.23 (176.7)  list_layout  -0.50±2.15 (74.4)  list_recalc  -4.85±4.24 (91.2)  typing_cpu/k  +3.51±0.72 (60.4)  typing_script/k +15.90±1.98 (7.8)
dev      n=18 list_cpu +21.28±2.56 (3292.5)  list_script  -2.11±2.25 (176.1)  list_layout  -1.04±1.25 (74.0)  list_recalc  -4.81±3.83 (91.3)  typing_cpu/k  +3.42±0.49 (60.4)  typing_script/k +17.10±2.27 (7.9)
ohead    n=18 list_cpu  +1.68±1.21 (2761.0)  list_script  -0.57±2.46 (178.7)  list_layout  -0.08±2.31 (74.8)  list_recalc  +0.94±4.01 (96.9)  typing_cpu/k  +0.13±0.37 (58.4)  typing_script/k  +1.44±1.79 (6.8)
head     n=18 list_cpu  +1.60±1.23 (2758.6)  list_script  +0.17±1.62 (180.2)  list_layout  +0.34±2.51 (75.1)  list_recalc  +4.09±3.38 (99.9)  typing_cpu/k  +0.10±0.34 (58.4)  typing_script/k  +1.46±1.86 (6.8)
=== vs dev (3 session(s)); mean %, ±1.96se
obase    n=18 list_cpu -19.14±1.09 (2662.0)  list_script  -1.31±2.67 (173.6)  list_layout  -0.59±1.68 (73.6)  list_recalc  +2.39±2.89 (93.4)  typing_cpu/k  -3.27±0.46 (58.4)  typing_script/k -14.13±1.84 (6.7)
base     n=18 list_cpu -17.49±1.57 (2716.7)  list_script  +2.17±1.84 (179.8)  list_layout  +1.06±2.18 (74.8)  list_recalc  +5.31±4.63 (96.2)  typing_cpu/k  -3.31±0.31 (58.4)  typing_script/k -14.59±1.16 (6.7)
dev2     n=18 list_cpu  -0.54±2.18 (3274.6)  list_script  +0.44±2.46 (176.7)  list_layout  +0.56±2.24 (74.4)  list_recalc  -0.05±3.92 (91.2)  typing_cpu/k  +0.09±0.76 (60.4)  typing_script/k  -1.01±1.73 (7.8)
dev      n=18 list_cpu  +0.00±1.69 (3292.5)  list_script  +0.00±2.19 (176.1)  list_layout  +0.00±1.25 (74.0)  list_recalc  +0.00±3.27 (91.3)  typing_cpu/k  +0.00±0.42 (60.4)  typing_script/k  +0.00±1.86 (7.9)
ohead    n=18 list_cpu -16.13±0.91 (2761.0)  list_script  +1.60±2.68 (178.7)  list_layout  +0.97±2.32 (74.8)  list_recalc  +6.13±4.09 (96.9)  typing_cpu/k  -3.18±0.38 (58.4)  typing_script/k -13.37±1.53 (6.8)
head     n=18 list_cpu -16.21±0.70 (2758.6)  list_script  +2.31±1.32 (180.2)  list_layout  +1.39±2.47 (75.1)  list_recalc  +9.40±2.99 (99.9)  typing_cpu/k  -3.21±0.30 (58.4)  typing_script/k -13.36±1.43 (6.8)

Pooled ×3, run V (containment variants: ws = .wlist{contain:strict} (this PR), cc = scroller contain:content, both; head2 = control)

=== vs head (3 session(s)); mean %, ±1.96se
cc       n=18 list_cpu  +0.12±0.88 (2795.6)  list_script  -2.07±2.91 (181.2)  list_layout  -2.22±2.23 (74.7)  list_recalc  -2.46±3.62 (98.2)  typing_cpu/k  -0.24±0.84 (58.9)  typing_script/k  -0.77±4.01 (7.0)
base     n=18 list_cpu  -1.41±1.62 (2753.0)  list_script  -1.68±2.70 (181.9)  list_layout  +0.01±2.58 (76.4)  list_recalc  -2.45±2.73 (98.2)  typing_cpu/k  -0.37±0.56 (58.8)  typing_script/k  -1.85±2.75 (7.0)
both     n=18 list_cpu  +0.49±0.64 (2805.8)  list_script  +0.23±2.62 (185.5)  list_layout  -9.05±1.97 (69.5)  list_recalc  -1.32±3.36 (99.3)  typing_cpu/k  -0.43±0.45 (58.7)  typing_script/k  -2.10±2.02 (7.0)
ws       n=18 list_cpu  -0.22±0.82 (2786.0)  list_script  +0.75±2.21 (186.4)  list_layout  -9.79±1.96 (69.0)  list_recalc  -0.13±4.03 (100.5)  typing_cpu/k  -0.34±0.42 (58.8)  typing_script/k  -1.17±1.96 (7.0)
head2    n=18 list_cpu  +0.48±0.69 (2805.8)  list_script  +1.77±2.29 (188.3)  list_layout  +2.92±3.04 (78.7)  list_recalc  +2.80±3.00 (103.6)  typing_cpu/k  -0.06±0.38 (59.0)  typing_script/k  -0.33±1.43 (7.1)
head     n=18 list_cpu  +0.00±0.63 (2792.3)  list_script  +0.00±1.75 (185.0)  list_layout  +0.00±1.99 (76.5)  list_recalc  +0.00±2.89 (100.7)  typing_cpu/k  +0.00±0.26 (59.0)  typing_script/k  +0.00±1.17 (7.1)
=== vs base (3 session(s)); mean %, ±1.96se
cc       n=18 list_cpu  +1.61±1.56 (2795.6)  list_script  -0.26±3.59 (181.2)  list_layout  -2.20±2.20 (74.7)  list_recalc  +0.09±4.07 (98.2)  typing_cpu/k  +0.13±0.83 (58.9)  typing_script/k  +1.14±4.16 (7.0)
base     n=18 list_cpu  +0.00±1.34 (2753.0)  list_script  +0.00±2.35 (181.9)  list_layout  +0.00±2.24 (76.4)  list_recalc  +0.00±2.49 (98.2)  typing_cpu/k  +0.00±0.51 (58.8)  typing_script/k  +0.00±2.55 (7.0)
both     n=18 list_cpu  +1.96±1.20 (2805.8)  list_script  +2.03±2.97 (185.5)  list_layout  -9.00±2.28 (69.5)  list_recalc  +1.19±3.37 (99.3)  typing_cpu/k  -0.06±0.39 (58.7)  typing_script/k  -0.24±1.91 (7.0)
ws       n=18 list_cpu  +1.26±1.54 (2786.0)  list_script  +2.59±3.00 (186.4)  list_layout  -9.73±2.40 (69.0)  list_recalc  +2.44±4.22 (100.5)  typing_cpu/k  +0.03±0.40 (58.8)  typing_script/k  +0.73±1.97 (7.0)
head2    n=18 list_cpu  +1.95±1.02 (2805.8)  list_script  +3.52±2.01 (188.3)  list_layout  +2.91±2.75 (78.7)  list_recalc  +5.48±3.45 (103.6)  typing_cpu/k  +0.31±0.39 (59.0)  typing_script/k  +1.58±1.50 (7.1)
head     n=18 list_cpu  +1.47±1.16 (2792.3)  list_script  +1.79±2.26 (185.0)  list_layout  +0.06±2.33 (76.5)  list_recalc  +2.59±3.22 (100.7)  typing_cpu/k  +0.37±0.35 (59.0)  typing_script/k  +1.95±1.65 (7.1)

Earlier: one 8-arm diagnostic session (d1, first 25 samples under both locks; its watcher was cut by a time limit, so later samples were dropped) had a noisy control (+10 %) and is not used. A perf-01 timeline trace (4+4) had head −1.7 % vs base: Paint counts identical (283 scroller paints per run on both), Layerize +8.6 ms, GC +9 ms, HitTest −28.7 ms; nothing structural. On dev-01 (12 cores, and pinned to 4) head was 10–15 % below base in every ABAB: that host cannot see this cost.

Real Safari (macos-01, 8 cycles ABAB, one quiet session; an earlier session with 0.74 GB free stalled every arm and was discarded), median worst ms / frames ≥50: scroll base 24.0/1 (one 1315 ms stall), head 24.0/0, fix 24.5/0; hide 64.0/19, 68.5/14, 53.0/7; show 71.5/26, 64.0/24, 64.5/21; idle 22.5/23.0/24.5, none ≥50.

## Evidence: list-scroll cost, perf-01 (perf-turn FRONT, authorised; perf-02 lock held by an hd01 watcher across each turn) Server binary sha256 `fd197ff8…` (crates identical from `3cb2fd31e` to `6a3ef2e83` and dev `44fc0b7c4`). Dists built on dev-01 (fonts step), relayed via hd01, tar sha256 checked on both ends. Own fixture copy `~/nfls-perf/fixture` (the shared fixture minus `admin.sock`, `invite.key`, `auth.db-shm/-wal`). Harness: the gate driver `typing-list-cpu.mjs`, plus free ports and optional injected CSS per arm. Each sample is normalised to its own session's reference mean; ± = 1.96 se. ### Pooled ×3, run G (6 arms × 6 × 3 sessions) ``` === vs base (3 session(s)); mean %, ±1.96se obase n=18 list_cpu -1.94±1.69 (2662.0) list_script -3.39±2.65 (173.6) list_layout -1.63±1.61 (73.6) list_recalc -2.51±3.71 (93.4) typing_cpu/k +0.03±0.41 (58.4) typing_script/k +0.54±2.16 (6.7) base n=18 list_cpu +0.00±1.41 (2716.7) list_script +0.00±1.68 (179.8) list_layout +0.00±2.15 (74.8) list_recalc +0.00±3.61 (96.2) typing_cpu/k +0.00±0.24 (58.4) typing_script/k +0.00±1.29 (6.7) dev2 n=18 list_cpu +20.58±2.55 (3274.6) list_script -1.70±2.23 (176.7) list_layout -0.50±2.15 (74.4) list_recalc -4.85±4.24 (91.2) typing_cpu/k +3.51±0.72 (60.4) typing_script/k +15.90±1.98 (7.8) dev n=18 list_cpu +21.28±2.56 (3292.5) list_script -2.11±2.25 (176.1) list_layout -1.04±1.25 (74.0) list_recalc -4.81±3.83 (91.3) typing_cpu/k +3.42±0.49 (60.4) typing_script/k +17.10±2.27 (7.9) ohead n=18 list_cpu +1.68±1.21 (2761.0) list_script -0.57±2.46 (178.7) list_layout -0.08±2.31 (74.8) list_recalc +0.94±4.01 (96.9) typing_cpu/k +0.13±0.37 (58.4) typing_script/k +1.44±1.79 (6.8) head n=18 list_cpu +1.60±1.23 (2758.6) list_script +0.17±1.62 (180.2) list_layout +0.34±2.51 (75.1) list_recalc +4.09±3.38 (99.9) typing_cpu/k +0.10±0.34 (58.4) typing_script/k +1.46±1.86 (6.8) === vs dev (3 session(s)); mean %, ±1.96se obase n=18 list_cpu -19.14±1.09 (2662.0) list_script -1.31±2.67 (173.6) list_layout -0.59±1.68 (73.6) list_recalc +2.39±2.89 (93.4) typing_cpu/k -3.27±0.46 (58.4) typing_script/k -14.13±1.84 (6.7) base n=18 list_cpu -17.49±1.57 (2716.7) list_script +2.17±1.84 (179.8) list_layout +1.06±2.18 (74.8) list_recalc +5.31±4.63 (96.2) typing_cpu/k -3.31±0.31 (58.4) typing_script/k -14.59±1.16 (6.7) dev2 n=18 list_cpu -0.54±2.18 (3274.6) list_script +0.44±2.46 (176.7) list_layout +0.56±2.24 (74.4) list_recalc -0.05±3.92 (91.2) typing_cpu/k +0.09±0.76 (60.4) typing_script/k -1.01±1.73 (7.8) dev n=18 list_cpu +0.00±1.69 (3292.5) list_script +0.00±2.19 (176.1) list_layout +0.00±1.25 (74.0) list_recalc +0.00±3.27 (91.3) typing_cpu/k +0.00±0.42 (60.4) typing_script/k +0.00±1.86 (7.9) ohead n=18 list_cpu -16.13±0.91 (2761.0) list_script +1.60±2.68 (178.7) list_layout +0.97±2.32 (74.8) list_recalc +6.13±4.09 (96.9) typing_cpu/k -3.18±0.38 (58.4) typing_script/k -13.37±1.53 (6.8) head n=18 list_cpu -16.21±0.70 (2758.6) list_script +2.31±1.32 (180.2) list_layout +1.39±2.47 (75.1) list_recalc +9.40±2.99 (99.9) typing_cpu/k -3.21±0.30 (58.4) typing_script/k -13.36±1.43 (6.8) ``` ### Pooled ×3, run V (containment variants: ws = `.wlist{contain:strict}` (this PR), cc = scroller `contain:content`, both; head2 = control) ``` === vs head (3 session(s)); mean %, ±1.96se cc n=18 list_cpu +0.12±0.88 (2795.6) list_script -2.07±2.91 (181.2) list_layout -2.22±2.23 (74.7) list_recalc -2.46±3.62 (98.2) typing_cpu/k -0.24±0.84 (58.9) typing_script/k -0.77±4.01 (7.0) base n=18 list_cpu -1.41±1.62 (2753.0) list_script -1.68±2.70 (181.9) list_layout +0.01±2.58 (76.4) list_recalc -2.45±2.73 (98.2) typing_cpu/k -0.37±0.56 (58.8) typing_script/k -1.85±2.75 (7.0) both n=18 list_cpu +0.49±0.64 (2805.8) list_script +0.23±2.62 (185.5) list_layout -9.05±1.97 (69.5) list_recalc -1.32±3.36 (99.3) typing_cpu/k -0.43±0.45 (58.7) typing_script/k -2.10±2.02 (7.0) ws n=18 list_cpu -0.22±0.82 (2786.0) list_script +0.75±2.21 (186.4) list_layout -9.79±1.96 (69.0) list_recalc -0.13±4.03 (100.5) typing_cpu/k -0.34±0.42 (58.8) typing_script/k -1.17±1.96 (7.0) head2 n=18 list_cpu +0.48±0.69 (2805.8) list_script +1.77±2.29 (188.3) list_layout +2.92±3.04 (78.7) list_recalc +2.80±3.00 (103.6) typing_cpu/k -0.06±0.38 (59.0) typing_script/k -0.33±1.43 (7.1) head n=18 list_cpu +0.00±0.63 (2792.3) list_script +0.00±1.75 (185.0) list_layout +0.00±1.99 (76.5) list_recalc +0.00±2.89 (100.7) typing_cpu/k +0.00±0.26 (59.0) typing_script/k +0.00±1.17 (7.1) === vs base (3 session(s)); mean %, ±1.96se cc n=18 list_cpu +1.61±1.56 (2795.6) list_script -0.26±3.59 (181.2) list_layout -2.20±2.20 (74.7) list_recalc +0.09±4.07 (98.2) typing_cpu/k +0.13±0.83 (58.9) typing_script/k +1.14±4.16 (7.0) base n=18 list_cpu +0.00±1.34 (2753.0) list_script +0.00±2.35 (181.9) list_layout +0.00±2.24 (76.4) list_recalc +0.00±2.49 (98.2) typing_cpu/k +0.00±0.51 (58.8) typing_script/k +0.00±2.55 (7.0) both n=18 list_cpu +1.96±1.20 (2805.8) list_script +2.03±2.97 (185.5) list_layout -9.00±2.28 (69.5) list_recalc +1.19±3.37 (99.3) typing_cpu/k -0.06±0.39 (58.7) typing_script/k -0.24±1.91 (7.0) ws n=18 list_cpu +1.26±1.54 (2786.0) list_script +2.59±3.00 (186.4) list_layout -9.73±2.40 (69.0) list_recalc +2.44±4.22 (100.5) typing_cpu/k +0.03±0.40 (58.8) typing_script/k +0.73±1.97 (7.0) head2 n=18 list_cpu +1.95±1.02 (2805.8) list_script +3.52±2.01 (188.3) list_layout +2.91±2.75 (78.7) list_recalc +5.48±3.45 (103.6) typing_cpu/k +0.31±0.39 (59.0) typing_script/k +1.58±1.50 (7.1) head n=18 list_cpu +1.47±1.16 (2792.3) list_script +1.79±2.26 (185.0) list_layout +0.06±2.33 (76.5) list_recalc +2.59±3.22 (100.7) typing_cpu/k +0.37±0.35 (59.0) typing_script/k +1.95±1.65 (7.1) ``` Earlier: one 8-arm diagnostic session (d1, first 25 samples under both locks; its watcher was cut by a time limit, so later samples were dropped) had a noisy control (+10 %) and is not used. A perf-01 timeline trace (4+4) had head −1.7 % vs base: Paint counts identical (283 scroller paints per run on both), Layerize +8.6 ms, GC +9 ms, HitTest −28.7 ms; nothing structural. On dev-01 (12 cores, and pinned to 4) head was 10–15 % *below* base in every ABAB: that host cannot see this cost. Real Safari (macos-01, 8 cycles ABAB, one quiet session; an earlier session with 0.74 GB free stalled every arm and was discarded), median worst ms / frames ≥50: scroll base 24.0/1 (one 1315 ms stall), head 24.0/0, fix 24.5/0; hide 64.0/19, 68.5/14, 53.0/7; show 71.5/26, 64.0/24, 64.5/21; idle 22.5/23.0/24.5, none ≥50.
Author
Owner

Included in #1150 (merged). Closing.

Included in #1150 (merged). Closing.
kayg closed this pull request 2026-11-15 03:48:04 +00:00
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

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!1147
No description provided.