Perf: preset-switch (~360 ms) and ⌘K-open (~250–300 ms) stalls in WebKit (pre-existing, mockup) #1054
Open
opened 2026-11-10 10:22:30 +00:00 by kayg
·
8 comments
No Branch/Tag specified
main
port/tasks-float-2
fix/train-1116-2
fix/train-1116-3
fix/train-1116-1
fix/flake-1134
fix/server-1182
dev
port/notes-float-3c
docs/auto-update-ig
feat/dav-transport
port/tasks-float-1
wip/mail1011-sv-order-1116
fix/flake-1179
fix/flake-1178
fix/guards-1153-fsio-split
fix/guards-1153-notes-split-we
fix/guards-1153-notes-lib
fix/guards-1153-notes-home
fix/guards-1153-ui-primitives
fix/guards-1153-primitives-e2e
fix/guards-1153-visibility-doc
feat/paper-grey-1116
fix/flake-1165
fix/flake-1119
docs/imap-766-plan-v2
fix/e2e-unique-ports
t3/paged-search-reconcile-final
wip/mail1011-final-1115
docs/tasks-float-port
perf/editor-first-paint-1c
feat/imap-notes-fetch
feat/imap-notes-projection
feat/imap-notes-readonly
feat/imap-notes-auth
feat/imap-notes-server-foundation
wip/mail1011-txn-ownvocab-1115
wip/mail1011-txn-novocab-1115
perf/p1117-final-harness
perf/single-shot-repeats
port/tasks-matrix
wip/mail1011-txn-1115
fix/static-gates-1155
feat/files-s1-identity-r7
fix/files-r7-idle-loop
fix/daily-train-1152
port/notes-float
fix/editor-tables-test-types
port/notes-float-listscript
feat/tasks-actions
port/notes-float-phone-preload
perf/sound-comparator
port/notes-float-listscroll
port/notes-float-budgets
port/notes-float-suite-fix-b
port/notes-float-sidebar-fix
port/notes-float-trim
port/notes-float-3-lists
fix/attachments-meta-capability
docs/carddav-writes-v2-plan
feat/contacts-companion-pure
issue/carddav-read-perf-fix-r2
issue/carddav-read-r2
port/notes-float-devsync2
review/calendar-2
review/switcher-a-pills
port/notes-float-switcher-a
port/port-tables-2
review/switcher-ends
wip/whiteboard-s1-1114
port/port-tables
wip/mail1011-perfneutral
review/photo-tint
port/notes-float-shell
wip/local/collections-db
wip/local/mail-p1
wip/local/cold-growth-on-tiering
wip/local/tiering-v3-s1
wip/local/wal1051-cap
wip/local/tiering-v3-s1-resume
wip/local/index-position-startup-scan
port/notes-float-flat
port/notes-float-promote
wip/handover/mail1011-candidate
wip/handover/files-s1-candidate
port/notes-float-shell-only
port/notes-float-perf
feat/whiteboard-s1
feat/tiering-v5
fix/app-switch-hitch
wip/local/files-s1-dev-v4-final
feat/files-s1-dev-v4
fix/c2-glass-shared
feat/flat-lists
wip/handover/whiteboard-s1-resume
wip/att-lazy-861
feat/switcher-browse
wip/att-lazy-860
feat/tasks-float
recovered/flat-backup-candidate
perf/stalls-1054-kc
land/ai-toolbar
feat/collections-db
feat/collections-db-fixes
codex/mail-1011-redesign-20261111
fix/ai-toolbar
backup/macos-vm/st3-head
perf/trim-candidate-phonestack
feat/switcher-three
fix/1051-index-idle-checkpoint
perf/stalls-1054-kb
perf/stalls-1054-k
perf/stalls-1054-r3
fix/c2-contrast-tail
perf/stalls-1054-r3-preview
feat/collections-before
feat/tiering-v4
fix/timelog-caret
wip/local/tasks-actions
docs/tasks-writes-v2-plan
st3-r3
feat/pass8
review/calendar-2-before-1111
wip/tiering-v3-cold4
perf/stalls-1054-r2
fix/suite-A4
fix/suite-A5-probe
fix/suite-A6
fix/suite-A3
fix/suite-A2
fix/suite-A5
fix/suite-A1
wip/local/attachments-861-fix
feat/contrast
wip/local/ports-861
storage/wal-checkpoint-off-save-1051
wip/local/mail-1011-reconcile-20261110
feat/style-sheet-fixes
feat/money-round
perf/stalls-1054
wip/tiering-v3-cold5
t3/mail-1011-liveness
feat/iphone-fixes
feat/notes-approve
wip/local/shrow-work
feat/files-s1-identity
feat/quickfix
wip/tiering-v3-cold
wip/local/shared-row-swipes
backup/macos-vm/pfx-B
backup/macos-vm/pfx-C
backup/macos-vm/pfx-D
feat/contrast-r1
feat/tiering-v3-s2-tags
feat/folder-drop
t3/photos-s1
feat/tiering-v3-s1-namespace
wip/local/photos-s1
t3/photos-plan-slice-one
recovered/backup/p1b-61505
t3/paged-search-reconcile
t3/smooth-pane-transitions
t3/index-position-startup-scan
fix/private-staging-759b-r2
backup/macos-vm/hk/hk1009/pr877
backup/macos-vm/hk/hk1009/pr878
docs/undo-block-ids-plan
fix/undo-768
backup/macos-vm/hk/hk1009/pr875
backup/macos-vm/hk/hk1009/pr904
proto/block-identity-v7d
backup/macos-vm/hk/hk1009/pr846
backup/macos-vm/hk/hk1009/pr860
backup/macos-vm/hk/hk1009/pr861
backup/macos-vm/hk/hk1009/pr849
backup/macos-vm/hk/hk1009/pr848
backup/macos-vm/hk/hk1009/pr853
backup/macos-vm/hk/hk1009/pr957
backup/macos-vm/hk/hk1009/pr893
backup/macos-vm/hk/hk1009/pr889
backup/macos-vm/hk/hk1009/pr902
docs/imap-notes-plan
docs/quota-plan-2
fix/parallel-test-flakes
docs/calendar-backend-v2-plan
feat/calendar-ical-converter
backup/macos-vm/hk/hk1009/pr808
docs/contacts-import-v2-plan
issue/610-pm-midnight
feat/calendar-v2-s1-containment
backup/macos-vm/hk/hk1009/pr854
backup/macos-vm/hk/hk1009/pr845
backup/macos-vm/hk/hk1009/pr917
docs/dav-recorder-v2-plan
plan/previews-865
plan/save-log-durable-entry
backup/macos-vm/hk/hk1009/pr934
fix/e2e-data-on-ram
backup/macos-vm/hk/hk1009/pr888
feat/appwindow3
feat/appwindow2
feat/appwindow
feat/money-p1
feat/keys-sheet
review/calendar-2-themes
feat/smooth-cursor
fix/float-style
review/calendar-2-float
release/2026-11-06-hotfix
archive/port/rows-drop-code
archive/port/rows-actions
archive/port/rows
scratch/tasks-894-ui-gates
review/calendar-2-night-wip
recovered/flaky/toast-reduced
release/2026-11-05
archive/flaky/rows-drop-fixed
archive/flaky/rows-actions
archive/flaky/rows
sim/bm15-final
sim/bm15-bis-932
sim/bm15-bis-909
sim/bm15
sim/bm15-bis-887
perf/tiering-option-b
fix/sw-lazy-precache
archive/plan/save-log-durable-entry
mock/money-fix2
archive/fix/e2e-data-on-ram
mock/appearance-all
mock/pill-press
mock/pill-press-mac
backup/macos-vm/appearance-after
mock/auto-swipes
mock/mail-actions
backup/macos-vm/mock/mail-actions
mock/money-static
archive/review/standards-917
perf/tiering-761-fix
mock/type-audit
mock/third-pane
feat/contacts-import-v2-s1
perf/executor-hot-path
archive/port/hidden-blocks
archive/port/devices
scratch/executor-on-894
scratch/executor-spans2
scratch/executor-spans
archive/port/rows-drop
feat/tiering-761-d-scale
feat/tiering-761-c-index
feat/tiering-761-b-reader
archive/review/sharing-pr3-review-9fec3d1f
perf/ports-lazy-budgets
feat/tiering-761-a-migration
archive/review/sharing-pr3-review
archive/review/sharing-pr3-review-code
archive/plan/previews-865
archive/port/port-attachments-3
archive/port/contacts-merge
fix/motion-audit-859
fix/motion-audit-859-mac
archive/port/port-pickers
archive/port/port-tables-2
archive/port/port-tables
recovered/local/sharing-s1-pr2-room-snapshot-candidate
archive/fix/parallel-test-flakes-code-minipc01
docs/imap-766-readonly-slice
feat/dav-recorder-v3
research/788-diagnosis
archive/fix/parallel-test-flakes
archive/perf/pr792-cold-index-edit
docs/sharing-slice-1
recovered/feat/dav-recorder-v2
recovered/feat/dav-recorder-v2-edd7bbb
spike/imap-766-s0-cases
archive/fix/undo-768
recovered/feat/dav-recorder
recovered/feat/dav-recorder-901acd4
feat/contacts-import
perf/cold-growth-on-764
perf/cold-growth-on-tiering
recovered/feat/tasks-set-status
feat/tasks-move-reorder
feat/tasks-delete-promote-duplicate
feat/carddav-writes
perf/quota-on-tiering
perf/quota-simple
perf/cold-growth-on-quota-stack
recovered/perf/cold-growth-on-tiering
feat/calendar-identity
feat/calendar-event-parser
feat/calendar-props-maps
port/glass-when-ring
recovered/feat/tiering-761-s1-wip-8132a84
recovered/feat/tiering-761-s1-wip-9da4094
recovered/feat/tiering-761-s1-wip-724512c
recovered/feat/tiering-761-s1-wip-66e667e
recovered/feat/tiering-761-s1
wip/6by32-01-tier-761-s1-pause-20261030
spike/imap-766-s0
wip/6by32-02-calternal-pause-20261030
wip/8by64-01-review-688-pause-20261030
wip/6by32-01-verify-744-pause-20261030
wip/6by32-01-verify-742-pause-20261030
fix/private-staging-759b
wip/6by32-01-review-748-pause-20261030
wip/6by32-01-review-733c-pause-20261030
wip/6by32-01-review-733b-pause-20261030
review/calendar-month
wip/local/bm15-trash
plan/759b-staging
review/767b-tests
review/preview-2026-10-29
docs/tiering-731-plan
wip/c6b02-review-733d
wip/c6b02-bm1-full-a
docs/deploy-plan
fix/storage-owner-liveness-642
fix/storage-fix-7
feat/tiering-731
wip/tiering-731-first-attempt
perf/idle-honest-2
fix/storage-private-tmp-642-dev
fix/storage-exact-file-quarantine-642
perf/one-flush-save
review/calendar-static
review/indexing-ring
review/when-field-2
proto/block-identity-2-review
proto/block-identity-review
review/when-field
issue/tasks-create-ids
issue/tasks-create
review/combined
review/task-polish
review/top-buttons
review/q1-q5
archive/integ325-293
archive/integ325-ci
issue/calendar-adr
archive/old/train/2026-10-23bk2
archive/old/train/2026-10-23bk
issue/469-mockup-9a
issue/smart-tasks-mockup
issue/469-menus
issue/652-signout-flake
issue/652-history-fix7
issue/652-history-fix6
archive/old/issue/spring-check-perf
issue/spring-check-perf
issue/659-rename-fast
archive/old/train/2026-10-21ar
issue/search-hardening-3
issue/652-history-fix5
issue/660-port-sheets-glass
issue/652-history-fix4
issue/652-history-fix3
issue/652-history-fix2
issue/652-history-flake
train/2026-10-21an
issue/settings-admin-port
issue/search-port
train/2026-10-20am
issue/storage-split-fix2
issue/storage-split
archive/old/issue/folder-ids-fix
train/2026-10-20al
archive/old/issue/folder-ids
train/2026-10-20ak
issue/tables-mockup
train/2026-10-19aj
train/2026-10-19ai
issue/469-merge-fixes
issue/sidebar-band
archive/old/issue/608-settings-spec
train/2026-10-19ah
issue/swipe-offscreen
train/2026-10-19ag
archive/old/issue/590-nlp-adr
archive/old/issue/587-event-after-write-2
train/2026-10-19af
archive/old/issue/587-event-after-write
issue/469-pill-room-c
issue/469-pill-room
train/2026-10-19ae
issue/469-narrow-handle
issue/397-ios-swipe-2
issue/469-desk-fixes
archive/old/issue/auto-update-adr
issue/469-filter-gap
issue/469-port-1b
issue/442-opacity-flake
issue/327-web-fast-3
archive/old/issue/469-port-1
issue/469-port-1
issue/327-web-fast-2
archive/old/issue/327-web-fast
archive/old/issue/425-stt-bench-vq1
archive/old/issue/445-no-bleed
archive/old/issue/400-swipe-mockup-2
issue/426-client-review
issue/426-client-2
issue/426-client
archive/old/issue/476-safe-area-lab
archive/old/issue/445-top-light
issue/471-blocks-mockup
archive/old/issue/448-links-app-2
archive/old/issue/448-links-app
archive/old/issue/398-cold-links
issue/434-442-small-2
issue/434-442-small
archive/old/issue/398-unload
archive/old/issue/445-bottom-band
issue/445-bottom-band
issue/351-rem-3
issue/351-rem-2
issue/351-rem
archive/old/issue/327-first-note
issue/395-width-phone
archive/old/issue/327-typing
issue/396-ios-edges
issue/397-ios-swipe
archive/old/issue/327-notes-index
issue/345-347-contrast-empty-2
archive/old/issue/44-arenas
issue/44-arenas
archive/integ325
archive/old/issue/327-perf-harness
archive/old/issue/44-thp
issue/44-thp
archive/old/issue/285-sticky-pills
archive/old/issue/44-trim-3
issue/44-trim-3
archive/old/issue/165-cards
archive/old/issue/165-picker-2
archive/old/issue/212-multi-select
No results found.
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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#1054
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found during the dynamic-glass work (#1035). These stalls exist on the approved pass8 mockup too, so they are not a #1035 regression.
Perf is the #1 priority and every animation must be free of frame drops, so both have to be profiled and fixed before they get ported. Steps:
Measure against the production build, not the dev server.
Partly covered by #1063 (head
5a48b7b1c): the 4 s preset/theme freeze in real Safari was the View Transition callback awaiting animation frames; fixed. Style-sheet theme switch now median 27 ms (15 of 20 under 50 ms); the app-wide theme switch is still ~117 ms and the Cmd+K open stall was not touched, so this stays open. Numbers and method are in #1063.#1054 perf lane, status: NOT fixed. Real-Safari baseline and root-cause narrowing are done; the fix and the "after" runs are blocked by the Mac VM (details at the end). Nothing to fold in.
Method: production build (
vite build) ofreview/calendar-2@0d759170f(base) served from the Mac VM; real Safari (macOS 26.5.2) through safaridriver at 1440 x 900; fresh Safari quit before each series; rAF deltas for 800 ms after each action (the harness is the one from #1063, plus an idle series). Lock held while measuring. 2026-11-10 21:41 to 22:14 UTC, before the VM degraded.will-change: transformon the blurred backdrop picture (the earlier #1054 commit)will-changelayer1. The
will-changelayer (the earlier commit on this branch, found with Playwright WebKit) does nothing in real Safari. The numbers are equal within noise, so I reverted it: branchperf/stalls-1054-r2(headdb5cb23d1) has the same tree as base. Do not fold it in as a fix. (The existing branchperf/stalls-1054is another agent's older work; I did not touch it.)2. Where the theme-switch time goes (8 to 10 runs each, same session, base build):
data-palattribute swapped, no app JSbackground-imageremovedfilter/backdrop-filterremovedscrollIntoView(the tile reveal) made a no-op:rootinherit everywhere).syncEdges, reveal) is 65 to 80 ms in the dev build; of thatfrost.msis 1 ms, the adaptive glasses do not run on Settings,scrollIntoView11 to 21 ms (it also pays for the style flush). The rest is not yet attributed (no CPU profile could be taken, see below).syncEdgesreadsgetComputedStyleand writes root custom properties right after thedata-palswap), repainting the gradients, and the Svelte updates that follow.3. ⌘K: median 76 ms and only 6/20 under 33 ms; not yet profiled (the palette mounts on
search.openinside{#if}).Why no fix and no "after" table: from about 22:15 UTC the Mac VM's Safari became unusable for frame timing: rAF pauses of 15 s inside runs, safaridriver 408/500 errors, and the app sometimes stays blank (28 elements, never mounts) although the page is
visible. The Mac lock was also held for most of the next four hours by other lanes. Everysample/idle attempt after that either failed or sampled an idle process. I will not post numbers from that state. Left on the Mac for the next try: worktrees~/Developer/Worktrees/st2-baseandst2-head(prod builds inapps/mockup/dist), scripts/tmp/st2-run.py(A/B harness, discards runs with a > 2 s rAF pause),/tmp/st2-sample.py(nativesampleof the WebContent process during 8 switches),/tmp/st2-lock-fast.sh.Next steps (for whoever resumes): (a) take a native
sampleof the right WebContent process during the switch to split style / layout / paint / JS; (b) try making thesyncEdges+ frost writes happen before the first style flush (one recalc instead of two), (c) scope the theme variables (set the ~40 custom properties on fewer ancestors, or swap a precomputed class on the app card only) and compare against the 1183-element recalc, (d) pre-mount the palette hidden for ⌘K. Each needs the Mac VM quiet and un-contended for 20 clean runs.Not run: the iPhone 18 Pro simulator check of ⌘K (no fix to verify yet).
#1054 perf lane, round 3 (branch
perf/stalls-1054-r3, head68ee52862= tree off8ea15d25): NOT fixed. Targets missed (theme switch ≤ 50 ms in 20/20, ⌘K with no frame over 33 ms). The slow frame is now located; two small changes are in.Method: production builds (
vite build) ofreview/calendar-2@0bc3f77bc(base) and the branch; real Safari 26.5.2 on macos-01 through safaridriver, 1440 x 900, Safari quit before each run, Mac lock held per run, blank page first (62 rAF/s; the app 60 to 62 rAF/s). Caveat: from about 08:50 IST the Mac VM was under outside load (load average 6 to 10 on 4 cores between my runs, outliers of 300 to 1000 ms), so the later numbers are noisy. Interleaved A/B only; no number below is a clean 20/20.1. Where a theme switch (Settings tile) goes (native
sampleof WebContent, base build)Per switch the main thread did about 35 ms, but the frame took 90 to 130 ms:
getComputedStyle().getPropertyValue(syncEdges, 85 samples),getComputedStyle(root).backgroundColor(thesetThemeColorline, 69) and the tile revealscrollIntoView(46). Style cost is dominated by comparing custom-property data (CustomPropertyData::operator==).RemoteLayerTreeDrawingArea.CommitQueuesat about 100 ms per switch influshAndCollectHandles: it waits for the GPU process to repaint. That wait is the remaining slow frame.document.getAnimations()held 107 to 128 running animations (55 colour, 21 box-shadow, 18 background-colour CSS transitions of 120 to 160 ms), so 3 to 4 frames in a row were slow, not one.CSS knobs injected before the click (head build, n = 10 each, worst frame median): none 112 ms;
.themegradhidden 87;.pic(frost copies) hidden 101; allbackdrop-filteroff 102 (blur is not it);.backdrophidden 88; all transitions off 84. So the gradients are about 25 ms and the repaint of everything else is a floor of about 85 ms on this VM.2. What is on the branch
1e7c91a75@property inherits:falsefor--edge-key/--edge-glass/--edge-glass-bottom(read only by root rules; mockup only) so the edge writes do not restyle all 1183 elementsf8ea15d25lib/settle.ts: finish the colour transitions the theme swap just started, right after the style flushsyncEdgesforcese2fb02e30+ revert68ee52862visibility:hidden+ inert) at idle3. Look unchanged
Computed values after switching to four themes (catppuccin, nord, dracula, gruvbox), base vs branch, 1035 visible elements each (
color,background-color,background-image,box-shadow, border/outline colour,fill,opacity,transition-property), plus the root's--paper --ink --accent --glass --theme-grad --edge-*, boththeme-colormetas and the body background:The 22 differing elements are only the random
url(#av-xxxx)ids of the avatar SVG fills (a new hash per build), no colour.4. ⌘K (4 + 4 runs per knob, noisy)
Opening costs about 17 ms of JS (mount included), then a long frame. Hiding only the preview pane (
.layer .preview) brought the worst frame median to 37 and 43 ms, while the same session's other cases were 60 to 300 ms: the first result's note preview (NotePreview:blocksHTML+{@html}of the whole note, then hit marking) is the cost, in style/layout/paint, not in JS. Hiding the glass: 67 ms; not conclusive.5. Next steps (need a quiet VM, and one is a look decision)
content-visibility: autowith measured intrinsic sizes. Needs the scroll-to-hit maths checked.st3-run.py,st3.sh) lives on the Mac in~/st3; JSON per run in~/st3/out.Honest process note: two of my wrapper scripts kept the Mac lock for about 14 and 35 minutes after their runs ended (a bare
waiton my own http.server); I stopped only my own PIDs and fixed the script.#1054 round 4: theme switch improved (target met in kayg's new form for 19/20 runs), ⌘K NOT fixed (reverted). Head
05a97d69e, merged intoreview/calendar-2(fast-forward) and calendar-2 redeployed.Real Safari 26.5.2 on macos-01, production builds, paired A/B in one Safari session (fresh page per sample, order alternated), 20 switches each, Safari quit first, Mac lock held. All timings quoted were taken before 12:12 UTC (the std contention window); the later
fin-kandfin-truns are discarded.What merged (one commit)
lib/settle.ts(finishes the colour fades a theme switch starts),lib/edges.ts(syncEdgesnow runs once per frame in an animation-frame callback, so the three forced style recalcs in the click task are gone: thesyncEdgesread, thetheme-colorread, and the tile reveal),ThemeRow.svelte(reveal after two frames),App.svelte.1e7c91a75(the@propertycommit) is dropped as asked.Theme switch (Settings tile), head vs base, n = 20 each, three paired runs
Gate: exactly one long frame (the full-window redraw), every other frame ≤ 33 ms.
⌘K: not met, nothing merged
Opening is about 11 to 17 ms of JS, then one long frame. A/B at 20 runs: worst-frame median 85 to 92 ms for both base and every variant I tried. Variants (all reverted, branch
perf/stalls-1054-r3-previewkeeps the first one): first screen of blocks only plus rest at idle (no gain); pre-mounted palette (no gain); preview pane two frames after the open and the note words one frame later (worse: second-worst frame median 32 to 42 vs 24); preview glass one frame later (worse, 42 vs 22). Knob test: with the preview pane hidden the open's worst frame median is 27.5 to 40 ms (13 of 14 runs ≤ 50), with only the preview's.float-glasshidden 40 ms, so the cost is the preview pane's glass (backdrop blur of a large new layer) appearing in the open's frame, not the note's HTML. Splitting it across frames only moves the cost into a second long frame. Next idea, not tried: keep the preview glass layer permanently composited (it is mounted only when there is a result) or open the pane without its own blur and fade it in; both change how it looks or loads, so I stopped.Checks
dev-01 Chromium, my branch: appearance, status-bar, themes specs 89 passed, 1 failed (
appearance.spec.ts:173, a 90 s timeout indocument.fonts.readyunder heavy host load); the same test passes on current calendar-2 base (1/1) and on my branch 3/3 with--repeat-each=3, so flaky under load, not related. The earlier chrome/round9b/style-sheet run was cut short when my systemd job vanished (exit 137), so those three were not completed. svelte-check was run but the mockup reports 783 module-resolution errors on this host unrelated to the change.Look unchanged: computed-value diff of four themes (earlier comment): equal except random avatar SVG ids; this commit only changes when the same writes happen.
Not done
iPhone 18 Pro simulator ⌘K check: no ⌘K change shipped, and std is in the infraternal test windows. Run it with the next ⌘K fix.
#1054 ⌘K round: A and B both measured in real Safari; neither reaches the target (worst frame < 33 ms). Nothing to merge. Branches for reference:
perf/stalls-1054-k(A, head96d219cde),perf/stalls-1054-kb(B, head031b555c5).Method as before (Mac VM, production builds with
rm -rf distfirst, paired A/B in one Safari session, fresh page per sample, 20 each, Mac lock held). Valid timings are only those after the window ended at 15:31 UTC; the runskA-k,kA-idletaken 15:19 to 15:33 UTC are discarded.Correction: my earlier "pre-mounted palette: no gain" result was measured on a stale
dist/(the build had failed on a duplicate identifier, andls distprinted the old bundle). A is therefore the first real test of pre-mounting.opacity: 0, inert, aria-hidden (kC-A)kC-held, same build)kB-k)backdrop-filter: none(look would change slightly)Reading: pre-mounting keeps no useful layer (no gain, even slightly worse), so the cost is not layer creation. The blur ramp gains about 8 ms (noise-sized). Removing the preview glass's blur entirely gains about 20 ms but still leaves about 56 ms; earlier knob runs showed hiding the whole preview pane gives 27 to 40 ms. So the long frame is the preview pane as a whole (its glass plus the note laid out and painted in a
container-type: sizebox) appearing in one frame; no one piece gets it under 33 ms.A idle/scroll costs were not measured because A does not ship; the scroll harness also did not find the list scroller (selector needs fixing before reuse). B's idle cost is nil by construction (nothing is mounted until open).
Specs (dev-01, Chromium, under
~/bin/slot, currentreview/calendar-2568b707c0, which includes the theme-switch commit): chrome, round9b, style-sheet: 110 passed (24.5 min). The earlier failures on branch A (an extradialogrole from the asleep palette, fixed byaria-hidden) are specific to A.iPhone sim ⌘K check: not done, since no ⌘K change ships.
Options for the next step (need a decision):
container-type: size, first-screen blocks only, no pane box-shadow) combined with 2; I have not measured the combination.#1054 ⌘K round 3 (option 3 + 2): improved, target (< 33 ms) NOT reached. Branch
perf/stalls-1054-kc, head5b5ed4623(tree of8069bdd08), offreview/calendar-2b4b1e9693. Best number: open worst-frame median 73 to 45 ms; one long frame remains. Your call whether to merge it.Real Safari 26.5.2 on macos-01, production builds with
rm -rf dist, paired A/B in one session (fresh page per sample, alternating order), 20 runs, Mac lock held, only runs after 15:31 UTC (and one 19:14 to 19:21 UTC pair discarded, since J480 had a Mac build window then).Change (two commits)
e7c4264b1: a note's preview draws only the blocks that fill the pane (fitCount, guess 760 px) at once and the rest in 12-block pieces at idle (from 450 ms on); with words typed everything is drawn at once so hits are marked and scrolled to as before.8069bdd08: the preview pane (.preview) mounts two animation frames after the open and fades in over 110 ms (no empty flash);container-type: sizeonly on flat previews (a file's page usescqh); the note preview's glass keeps its tint, inner shade and edge but not a secondbackdrop-filter(the palette's own glass is already blurring behind it).Rejected on measurement: words drawn one frame after the pane (worse: worst median 71 ms, 2nd-worst 38), the earlier pre-mounts and blur ramps.
⌘K open, base vs branch (worst frame, 20 runs each)
kd-k)kg-k)kg-k2)Costs while closed (no palette mounted, so nothing added)
Idle rAF deltas 4 s at rest (
kd-idle, 12 runs): base 25.0 ms median, branch 24.0, max 26 vs 28. List scroll with the palette closed (3 s programmatic scroll of the notes list,kg-scroll, 12 runs; selector fixed): base 23.5 / max 36, branch 24.0 / max 29. Unchanged. Nothing is mounted at idle, so there is no GPU memory or paint-flash change to check.Look
Palette open on the notes page, base vs branch, 1440 x 968, real Safari, light and dark: mean absolute pixel difference 0.027 / 0.024 of 255 (light: max 13, 665 px above 6; dark: 84 px above 6, caret or note-text sampling). Screenshots below (
base-*,kc-*).Not done / pending
!phone), so the phone change is only the unchanged open path. I can run it on request.#1054 ⌘K round 3, addendum on the specs (branch
perf/stalls-1054-kc, head446ed1e59=5b5ed4623plus one test edit).Functional run on dev-01 Chromium under
~/bin/slotof the palette specs against the branch before the test edit: 80 passed, 14 failed.glass-portal.spec.ts: 90 s timeouts inpage.reload(host load; same class as thefonts.readytimeout seen earlier on calendar-2).search-preview.spec.ts("the preview is glass", 1440 x 900, all backdrops): the spec requires the pane's glass to have the samebackdrop-filteras the palette's, which is exactly what this change removes (no second blur layer).446ed1e59updates it: same tint, and no second blur layer. This is a deliberate change of the "one glass" rule for this pane; say so if you want it kept and I will drop the blur removal instead.I queued a re-run of
search-previewandglass-portal(workers 1) at 22:10 CET but dev-01's six slots were held by long jobs for 3 hours and it never started, so I stopped it per the 3 h rule. The edited spec has not been run. Re-runtests/search-preview.spec.ts tests/glass-portal.spec.ts --project=chromiumbefore merging.#1054: ⌘K preview change merged into
review/calendar-2(fast-forward, headb78f50dd6) and calendar-2 redeployed.Targeted specs,
search-preview,glass-portal,chrome, on dev-02 (a free slot; dev-01 queued for hours) against branch head before the final rebase (f2b668f89):search-preview"1440x900 dark busy: the pane's glass is the same tint as the palette's". It fails on the unchanged calendar-2 base too (chromium 3/3, webkit 4/4, same cause: the two adaptive glasses get a slightly different tint over the busy backdrop), so it is pre-existing and not caused by this change.glass-portal90 s timeouts (page.evaluate/reload) on dev-02 under load; the same tests passed in chromium (and in WebKit the other 12 cases passed). Not re-run.Known limit: the open of the palette is now two medium frames instead of one long one: worst-frame median 73 to 45 ms (Settings page, two paired 20-run sets in real Safari) and about 87 to 52 ms on the notes page; typical first frame 26 to 40 ms, second 29 to 78 ms. The target (< 33 ms) is not met; accepted as the known limit for now. Idle and list scroll with the palette closed are unchanged (25.0 vs 24.0 ms and 23.5 vs 24.0 ms at the median).