WIP: Preload split UI after paint and retain resolved screens #746

Closed
kayg wants to merge 0 commits from perf/bundle-room-4 into dev
Owner

Opening warmed UI still waited for import promises and a sheet handoff. Split surfaces now preload after paint or on targeted intent and reuse resolved components. Search panels stay separate for cold opens, Settings prepares its hidden bar by the next frame, and ready sheets crossfade immediately. Toasts stay eager.

Follow-up to #689; supersedes #726. Head 8e1ae6509299041351e0fa8161f5c08437a18d35.

Both typechecks and lint pass (web: 0 errors, 14 existing warnings). All 299 editor and 38 UI unit tests pass. Targeted Chromium/WebKit specs at 390 and 1440 pass: 152 distinct applicable cases, 16 intentional skips; coverage includes idle/timer/intent preload, first-update content, stylesheet recovery, Undo, Info and sheet geometry. Bundle budgets are unchanged and pass: 237.54 KB first-load JS and 294.58 KB total JS (Brotli).

Requested timing acceptance FAILED (3 of 32 cells) at head 8e1ae6509299041351e0fa8161f5c08437a18d35. All 672 functional timing cases passed. The unchanged timing harness reports failures; its output is included verbatim in the linked evidence. This PR is not ready for acceptance. The final timing run used 4x CPU, seven alternating base/base2/head reps, 390/1440, cold/warm, disabled HTTP cache and the exclusive perf lock on 10by32-01-std.

Before/after evidence, all complete matrices, diagnostic traces and gate logs. No merge or deploy.

Opening warmed UI still waited for import promises and a sheet handoff. Split surfaces now preload after paint or on targeted intent and reuse resolved components. Search panels stay separate for cold opens, Settings prepares its hidden bar by the next frame, and ready sheets crossfade immediately. Toasts stay eager. Follow-up to #689; supersedes #726. Head `8e1ae6509299041351e0fa8161f5c08437a18d35`. Both typechecks and lint pass (web: 0 errors, 14 existing warnings). All 299 editor and 38 UI unit tests pass. Targeted Chromium/WebKit specs at 390 and 1440 pass: 152 distinct applicable cases, 16 intentional skips; coverage includes idle/timer/intent preload, first-update content, stylesheet recovery, Undo, Info and sheet geometry. Bundle budgets are unchanged and pass: 237.54 KB first-load JS and 294.58 KB total JS (Brotli). Requested timing acceptance FAILED (3 of 32 cells) at head `8e1ae6509299041351e0fa8161f5c08437a18d35`. All 672 functional timing cases passed. The unchanged timing harness reports failures; its output is included verbatim in the linked evidence. This PR is not ready for acceptance. The final timing run used 4x CPU, seven alternating base/base2/head reps, 390/1440, cold/warm, disabled HTTP cache and the exclusive perf lock on 10by32-01-std. [Before/after evidence, all complete matrices, diagnostic traces and gate logs](https://git.kayg.org/attachments/b760fb92-86ea-4f95-b7bd-822b5e9e2120). No merge or deploy.
perf: make room under unchanged JS budgets
Some checks failed
CI / server (pull_request) Successful in 1m18s
CI / rust (pull_request) Failing after 3m54s
CI / web (pull_request) Failing after 2h38m29s
150ec3758d
perf: keep notifications eager and warm note sheets on open
Some checks failed
CI / server (pull_request) Successful in 55s
CI / rust (pull_request) Successful in 20m34s
CI / web (pull_request) Has been cancelled
49207e1c77
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Cj2Q1hCskP8Frsk6X7EHw
Prioritize each control's own preload on intent
Some checks failed
CI / server (pull_request) Successful in 1m32s
CI / rust (pull_request) Successful in 14m29s
CI / web (pull_request) Has been cancelled
8e1ae65092
Author
Owner

Requested timing acceptance FAILED (3 of 32 cells) at head 8e1ae6509299041351e0fa8161f5c08437a18d35. All 672 functional timing cases passed. The unchanged timing harness reports failures; its output is included verbatim below.

Branch perf/bundle-room-4, base 325cb34e343327f653a4a11b840239cae1f3e0be; timing base 5ffd5dd79feabdca1b5dad7e4514e028ad56b554. New PR: #746.

Timing acceptance remains blocked by the three desktop cells listed below. The inline desktop filter is eager; it is distinct from the phone ListSearch panel. The warm inline cell is just above its unrounded noise limit even though both round to 0.70 ms. No acceptance waiver is applied.

All split UI surfaces warm once after paint through requestIdleCallback with a 1000 ms deadline and a timer fallback. Pointer, hover and focus intent prepares declared surface targets; idle still warms every surface. Settings, Palette, ListSearch, Inspector, NotePicker, Insert and Info retain their resolved components, so warmed opens avoid await blocks. Primary screen requests start before auxiliary requests. Palette and ListSearch stay in separate small on-demand chunks for use before idle. Settings builds its hidden bar on the following frame instead of waiting for a second idle callback. Ready sheets crossfade immediately without an extra handoff wait. Toast and notification paths stay eager.

Both typechecks and lint pass (web: 0 errors, 14 existing warnings). All 299 editor and 38 UI unit tests pass. Targeted Chromium/WebKit specs at 390 and 1440 pass: 152 distinct applicable cases, 16 intentional skips; coverage includes idle/timer/intent preload, first-update content, stylesheet recovery, Undo, Info and sheet geometry. Bundle budgets are unchanged and pass: 237.54 KB first-load JS and 294.58 KB total JS (Brotli).

The first follow-up matrix at acb6d15a passed all 672 functional cases but failed eight timing cells. A separate 24-case trace led to the Palette and sheet-entry changes. An intermediate second matrix passed all phone cells but failed two desktop warm cells under the requested noise rule. A third matrix passed all sheet and cold-toast cells but exposed phone ListSearch cold and Settings warm failures, leading to the separate search chunk and Settings bar preparation. A fourth matrix fixed Settings preparation but exposed competition from batch intent loading; targeted intents now avoid those unrelated imports. All five complete matrices and both diagnostic traces are attached; the final matrix uses the same unmodified harness as the prior job. Raw measurements, harness, traces and validation logs. No evidence is committed to the repo.

Medians in ms. Prior run is PR #726 at 325cb34e; follow-up uses 8e1ae650. Both runs compare against the same base SHA and use independent base2 samples to measure each cell's noise.

Width Surface State Prior base Prior head Prior delta New base New head New delta New noise Requested gate
390 InfoSheet cold 100.20 99.30 -0.90 94.70 35.50 -59.20 2.50 pass
390 InfoSheet warm 95.50 92.10 -3.40 93.70 27.60 -66.10 0.40 pass
390 InsertSheet cold 91.10 93.60 +2.50 95.50 22.10 -73.40 0.70 pass
390 InsertSheet warm 94.90 91.30 -3.60 94.20 26.70 -67.50 0.30 pass
390 Inspector cold 106.20 103.60 -2.60 97.40 33.40 -64.00 11.60 pass
390 Inspector warm 96.00 92.70 -3.30 93.40 30.60 -62.80 6.30 pass
390 ListSearch cold 26.20 30.80 +4.60 27.90 25.80 -2.10 1.70 pass
390 ListSearch warm 31.10 33.60 +2.50 31.50 18.70 -12.80 0.20 pass
390 NotePicker cold 91.20 91.10 -0.10 91.10 23.70 -67.40 0.60 pass
390 NotePicker warm 84.90 88.00 +3.10 88.80 24.50 -64.30 1.90 pass
390 Notification cold 93.70 86.40 -7.30 76.70 68.80 -7.90 7.40 pass
390 Notification warm 100.40 107.70 +7.30 91.40 88.30 -3.10 0.40 pass
390 Palette cold 48.00 44.50 -3.50 41.80 30.30 -11.50 1.30 pass
390 Palette warm 42.50 40.70 -1.80 36.70 17.60 -19.10 6.80 pass
390 Settings cold 67.30 66.60 -0.70 58.90 39.00 -19.90 2.00 pass
390 Settings warm 55.10 60.30 +5.20 46.50 46.10 -0.40 1.80 pass
1440 InfoSheet cold 115.00 118.10 +3.10 111.40 40.50 -70.90 2.10 pass
1440 InfoSheet warm 175.80 145.10 -30.70 123.50 52.50 -71.00 11.60 pass
1440 InsertSheet cold 110.70 116.30 +5.60 113.00 25.30 -87.70 0.70 pass
1440 InsertSheet warm 166.90 187.80 +20.90 156.30 42.80 -113.50 17.10 pass
1440 Inspector cold 133.00 129.10 -3.90 123.60 37.70 -85.90 4.50 pass
1440 Inspector warm 173.40 189.20 +15.80 146.50 78.20 -68.30 10.60 pass
1440 ListSearch cold 12.30 15.30 +3.00 11.40 15.80 +4.40 0.60 FAIL
1440 ListSearch warm 25.50 25.40 -0.10 26.70 27.40 +0.70 0.70 FAIL
1440 NotePicker cold 124.30 122.30 -2.00 107.40 35.50 -71.90 17.00 pass
1440 NotePicker warm 131.90 184.40 +52.50 162.90 56.10 -106.80 10.60 pass
1440 Notification cold 25.80 29.30 +3.50 24.00 22.80 -1.20 1.00 pass
1440 Notification warm 28.70 30.90 +2.20 29.40 30.20 +0.80 1.10 pass
1440 Palette cold 45.70 46.80 +1.10 42.30 43.20 +0.90 0.40 FAIL
1440 Palette warm 53.80 52.10 -1.70 50.40 35.00 -15.40 0.20 pass
1440 Settings cold 101.50 99.80 -1.70 94.20 89.20 -5.00 1.70 pass
1440 Settings warm 87.00 81.10 -5.90 83.10 81.20 -1.90 1.90 pass

Requested noise-based gate: 3 of 32 cells failed. The unchanged harness also reports its stricter zero allowance on cold notifications below.

Verbatim final timing gate output:

| Width | Surface | State | Base-vs-base noise ms | Head minus base ms | Allowance ms | Gate |
|---|---|---|---|---|---|---|
| 390 | InfoSheet | cold | 2.50 | -59.20 | 2.50 | pass |
| 390 | InfoSheet | warm | 0.40 | -66.10 | 0.40 | pass |
| 390 | InsertSheet | cold | 0.70 | -73.40 | 0.70 | pass |
| 390 | InsertSheet | warm | 0.30 | -67.50 | 0.30 | pass |
| 390 | Inspector | cold | 11.60 | -64.00 | 11.60 | pass |
| 390 | Inspector | warm | 6.30 | -62.80 | 6.30 | pass |
| 390 | ListSearch | cold | 1.70 | -2.10 | 1.70 | pass |
| 390 | ListSearch | warm | 0.20 | -12.80 | 0.20 | pass |
| 390 | NotePicker | cold | 0.60 | -67.40 | 0.60 | pass |
| 390 | NotePicker | warm | 1.90 | -64.30 | 1.90 | pass |
| 390 | Notification | cold | 7.40 | -7.90 | 0.00 | pass |
| 390 | Notification | warm | 0.40 | -3.10 | 0.40 | pass |
| 390 | Palette | cold | 1.30 | -11.50 | 1.30 | pass |
| 390 | Palette | warm | 6.80 | -19.10 | 6.80 | pass |
| 390 | Settings | cold | 2.00 | -19.90 | 2.00 | pass |
| 390 | Settings | warm | 1.80 | -0.40 | 1.80 | pass |
| 1440 | InfoSheet | cold | 2.10 | -70.90 | 2.10 | pass |
| 1440 | InfoSheet | warm | 11.60 | -71.00 | 11.60 | pass |
| 1440 | InsertSheet | cold | 0.70 | -87.70 | 0.70 | pass |
| 1440 | InsertSheet | warm | 17.10 | -113.50 | 17.10 | pass |
| 1440 | Inspector | cold | 4.50 | -85.90 | 4.50 | pass |
| 1440 | Inspector | warm | 10.60 | -68.30 | 10.60 | pass |
| 1440 | ListSearch | cold | 0.60 | 4.40 | 0.60 | FAIL |
| 1440 | ListSearch | warm | 0.70 | 0.70 | 0.70 | FAIL |
| 1440 | NotePicker | cold | 17.00 | -71.90 | 17.00 | pass |
| 1440 | NotePicker | warm | 10.60 | -106.80 | 10.60 | pass |
| 1440 | Notification | cold | 1.00 | -1.20 | 0.00 | pass |
| 1440 | Notification | warm | 1.10 | 0.80 | 1.10 | pass |
| 1440 | Palette | cold | 0.40 | 0.90 | 0.40 | FAIL |
| 1440 | Palette | warm | 0.20 | -15.40 | 0.20 | pass |
| 1440 | Settings | cold | 1.70 | -5.00 | 1.70 | pass |
| 1440 | Settings | warm | 1.90 | -1.90 | 1.90 | pass |

FAIL: 3 of 32 cold/warm comparisons failed; 672 measurements; 7 repetitions per cell.
1440 ListSearch cold: base=11.400000 ms, base2=12.000000 ms, head=15.800000 ms, delta=4.400000 ms > allowance=0.600000 ms
1440 ListSearch warm: base=26.700000 ms, base2=26.000000 ms, head=27.400000 ms, delta=0.700000 ms > allowance=0.700000 ms
1440 Palette cold: base=42.300000 ms, base2=42.700000 ms, head=43.200000 ms, delta=0.900000 ms > allowance=0.400000 ms

Verbatim final bundle gate output:

| metric | Home | unit | n | p50 | p95 | max | budget | |
|---|---:|---|---:|---:|---:|---:|---|---|
| `web.bundle.all_css_brotli` | - | KB | 1 | 32.8 | 32.8 | 32.8 |  |  |
| `web.bundle.all_css_gzip` | - | KB | 1 | 37.6 | 37.6 | 37.6 |  |  |
| `web.bundle.all_css_raw` | - | KB | 1 | 176 | 176 | 176 |  |  |
| `web.bundle.all_js_brotli` | - | KB | 1 | 295 | 295 | 295 | p95 ≤ 300 | ok |
| `web.bundle.all_js_gzip` | - | KB | 1 | 344 | 344 | 344 |  |  |
| `web.bundle.all_js_raw` | - | KB | 1 | 1018 | 1018 | 1018 |  |  |
| `web.bundle.first_css_brotli` | - | KB | 1 | 20.7 | 20.7 | 20.7 | p95 ≤ 22.1 | ok |
| `web.bundle.first_css_gzip` | - | KB | 1 | 23.6 | 23.6 | 23.6 |  |  |
| `web.bundle.first_css_raw` | - | KB | 1 | 120 | 120 | 120 |  |  |
| `web.bundle.first_js_brotli` | - | KB | 1 | 238 | 238 | 238 | p95 ≤ 240 | ok |
| `web.bundle.first_js_gzip` | - | KB | 1 | 280 | 280 | 280 |  |  |
| `web.bundle.first_js_raw` | - | KB | 1 | 846 | 846 | 846 |  |  |
| `web.bundle.plugins_css_brotli` | - | KB | 1 | 0.00 | 0.00 | 0.00 |  |  |
| `web.bundle.plugins_css_gzip` | - | KB | 1 | 0.00 | 0.00 | 0.00 |  |  |
| `web.bundle.plugins_css_raw` | - | KB | 1 | 0.00 | 0.00 | 0.00 |  |  |
| `web.bundle.plugins_js_brotli` | - | KB | 1 | 37.9 | 37.9 | 37.9 | p95 ≤ 45 | ok |
| `web.bundle.plugins_js_gzip` | - | KB | 1 | 42.9 | 42.9 | 42.9 |  |  |
| `web.bundle.plugins_js_raw` | - | KB | 1 | 135 | 135 | 135 |  |  |

No merge, deploy, or issue closure.

Requested timing acceptance FAILED (3 of 32 cells) at head `8e1ae6509299041351e0fa8161f5c08437a18d35`. All 672 functional timing cases passed. The unchanged timing harness reports failures; its output is included verbatim below. Branch `perf/bundle-room-4`, base `325cb34e343327f653a4a11b840239cae1f3e0be`; timing base `5ffd5dd79feabdca1b5dad7e4514e028ad56b554`. New PR: https://git.kayg.org/kayg/calternal/pulls/746. Timing acceptance remains blocked by the three desktop cells listed below. The inline desktop filter is eager; it is distinct from the phone ListSearch panel. The warm inline cell is just above its unrounded noise limit even though both round to 0.70 ms. No acceptance waiver is applied. All split UI surfaces warm once after paint through requestIdleCallback with a 1000 ms deadline and a timer fallback. Pointer, hover and focus intent prepares declared surface targets; idle still warms every surface. Settings, Palette, ListSearch, Inspector, NotePicker, Insert and Info retain their resolved components, so warmed opens avoid await blocks. Primary screen requests start before auxiliary requests. Palette and ListSearch stay in separate small on-demand chunks for use before idle. Settings builds its hidden bar on the following frame instead of waiting for a second idle callback. Ready sheets crossfade immediately without an extra handoff wait. Toast and notification paths stay eager. Both typechecks and lint pass (web: 0 errors, 14 existing warnings). All 299 editor and 38 UI unit tests pass. Targeted Chromium/WebKit specs at 390 and 1440 pass: 152 distinct applicable cases, 16 intentional skips; coverage includes idle/timer/intent preload, first-update content, stylesheet recovery, Undo, Info and sheet geometry. Bundle budgets are unchanged and pass: 237.54 KB first-load JS and 294.58 KB total JS (Brotli). The first follow-up matrix at acb6d15a passed all 672 functional cases but failed eight timing cells. A separate 24-case trace led to the Palette and sheet-entry changes. An intermediate second matrix passed all phone cells but failed two desktop warm cells under the requested noise rule. A third matrix passed all sheet and cold-toast cells but exposed phone ListSearch cold and Settings warm failures, leading to the separate search chunk and Settings bar preparation. A fourth matrix fixed Settings preparation but exposed competition from batch intent loading; targeted intents now avoid those unrelated imports. All five complete matrices and both diagnostic traces are attached; the final matrix uses the same unmodified harness as the prior job. [Raw measurements, harness, traces and validation logs](https://git.kayg.org/attachments/b760fb92-86ea-4f95-b7bd-822b5e9e2120). No evidence is committed to the repo. Medians in ms. Prior run is PR #726 at 325cb34e; follow-up uses 8e1ae650. Both runs compare against the same base SHA and use independent base2 samples to measure each cell's noise. | Width | Surface | State | Prior base | Prior head | Prior delta | New base | New head | New delta | New noise | Requested gate | |---|---|---|---|---|---|---|---|---|---|---| | 390 | InfoSheet | cold | 100.20 | 99.30 | -0.90 | 94.70 | 35.50 | -59.20 | 2.50 | pass | | 390 | InfoSheet | warm | 95.50 | 92.10 | -3.40 | 93.70 | 27.60 | -66.10 | 0.40 | pass | | 390 | InsertSheet | cold | 91.10 | 93.60 | +2.50 | 95.50 | 22.10 | -73.40 | 0.70 | pass | | 390 | InsertSheet | warm | 94.90 | 91.30 | -3.60 | 94.20 | 26.70 | -67.50 | 0.30 | pass | | 390 | Inspector | cold | 106.20 | 103.60 | -2.60 | 97.40 | 33.40 | -64.00 | 11.60 | pass | | 390 | Inspector | warm | 96.00 | 92.70 | -3.30 | 93.40 | 30.60 | -62.80 | 6.30 | pass | | 390 | ListSearch | cold | 26.20 | 30.80 | +4.60 | 27.90 | 25.80 | -2.10 | 1.70 | pass | | 390 | ListSearch | warm | 31.10 | 33.60 | +2.50 | 31.50 | 18.70 | -12.80 | 0.20 | pass | | 390 | NotePicker | cold | 91.20 | 91.10 | -0.10 | 91.10 | 23.70 | -67.40 | 0.60 | pass | | 390 | NotePicker | warm | 84.90 | 88.00 | +3.10 | 88.80 | 24.50 | -64.30 | 1.90 | pass | | 390 | Notification | cold | 93.70 | 86.40 | -7.30 | 76.70 | 68.80 | -7.90 | 7.40 | pass | | 390 | Notification | warm | 100.40 | 107.70 | +7.30 | 91.40 | 88.30 | -3.10 | 0.40 | pass | | 390 | Palette | cold | 48.00 | 44.50 | -3.50 | 41.80 | 30.30 | -11.50 | 1.30 | pass | | 390 | Palette | warm | 42.50 | 40.70 | -1.80 | 36.70 | 17.60 | -19.10 | 6.80 | pass | | 390 | Settings | cold | 67.30 | 66.60 | -0.70 | 58.90 | 39.00 | -19.90 | 2.00 | pass | | 390 | Settings | warm | 55.10 | 60.30 | +5.20 | 46.50 | 46.10 | -0.40 | 1.80 | pass | | 1440 | InfoSheet | cold | 115.00 | 118.10 | +3.10 | 111.40 | 40.50 | -70.90 | 2.10 | pass | | 1440 | InfoSheet | warm | 175.80 | 145.10 | -30.70 | 123.50 | 52.50 | -71.00 | 11.60 | pass | | 1440 | InsertSheet | cold | 110.70 | 116.30 | +5.60 | 113.00 | 25.30 | -87.70 | 0.70 | pass | | 1440 | InsertSheet | warm | 166.90 | 187.80 | +20.90 | 156.30 | 42.80 | -113.50 | 17.10 | pass | | 1440 | Inspector | cold | 133.00 | 129.10 | -3.90 | 123.60 | 37.70 | -85.90 | 4.50 | pass | | 1440 | Inspector | warm | 173.40 | 189.20 | +15.80 | 146.50 | 78.20 | -68.30 | 10.60 | pass | | 1440 | ListSearch | cold | 12.30 | 15.30 | +3.00 | 11.40 | 15.80 | +4.40 | 0.60 | FAIL | | 1440 | ListSearch | warm | 25.50 | 25.40 | -0.10 | 26.70 | 27.40 | +0.70 | 0.70 | FAIL | | 1440 | NotePicker | cold | 124.30 | 122.30 | -2.00 | 107.40 | 35.50 | -71.90 | 17.00 | pass | | 1440 | NotePicker | warm | 131.90 | 184.40 | +52.50 | 162.90 | 56.10 | -106.80 | 10.60 | pass | | 1440 | Notification | cold | 25.80 | 29.30 | +3.50 | 24.00 | 22.80 | -1.20 | 1.00 | pass | | 1440 | Notification | warm | 28.70 | 30.90 | +2.20 | 29.40 | 30.20 | +0.80 | 1.10 | pass | | 1440 | Palette | cold | 45.70 | 46.80 | +1.10 | 42.30 | 43.20 | +0.90 | 0.40 | FAIL | | 1440 | Palette | warm | 53.80 | 52.10 | -1.70 | 50.40 | 35.00 | -15.40 | 0.20 | pass | | 1440 | Settings | cold | 101.50 | 99.80 | -1.70 | 94.20 | 89.20 | -5.00 | 1.70 | pass | | 1440 | Settings | warm | 87.00 | 81.10 | -5.90 | 83.10 | 81.20 | -1.90 | 1.90 | pass | Requested noise-based gate: 3 of 32 cells failed. The unchanged harness also reports its stricter zero allowance on cold notifications below. Verbatim final timing gate output: ```text | Width | Surface | State | Base-vs-base noise ms | Head minus base ms | Allowance ms | Gate | |---|---|---|---|---|---|---| | 390 | InfoSheet | cold | 2.50 | -59.20 | 2.50 | pass | | 390 | InfoSheet | warm | 0.40 | -66.10 | 0.40 | pass | | 390 | InsertSheet | cold | 0.70 | -73.40 | 0.70 | pass | | 390 | InsertSheet | warm | 0.30 | -67.50 | 0.30 | pass | | 390 | Inspector | cold | 11.60 | -64.00 | 11.60 | pass | | 390 | Inspector | warm | 6.30 | -62.80 | 6.30 | pass | | 390 | ListSearch | cold | 1.70 | -2.10 | 1.70 | pass | | 390 | ListSearch | warm | 0.20 | -12.80 | 0.20 | pass | | 390 | NotePicker | cold | 0.60 | -67.40 | 0.60 | pass | | 390 | NotePicker | warm | 1.90 | -64.30 | 1.90 | pass | | 390 | Notification | cold | 7.40 | -7.90 | 0.00 | pass | | 390 | Notification | warm | 0.40 | -3.10 | 0.40 | pass | | 390 | Palette | cold | 1.30 | -11.50 | 1.30 | pass | | 390 | Palette | warm | 6.80 | -19.10 | 6.80 | pass | | 390 | Settings | cold | 2.00 | -19.90 | 2.00 | pass | | 390 | Settings | warm | 1.80 | -0.40 | 1.80 | pass | | 1440 | InfoSheet | cold | 2.10 | -70.90 | 2.10 | pass | | 1440 | InfoSheet | warm | 11.60 | -71.00 | 11.60 | pass | | 1440 | InsertSheet | cold | 0.70 | -87.70 | 0.70 | pass | | 1440 | InsertSheet | warm | 17.10 | -113.50 | 17.10 | pass | | 1440 | Inspector | cold | 4.50 | -85.90 | 4.50 | pass | | 1440 | Inspector | warm | 10.60 | -68.30 | 10.60 | pass | | 1440 | ListSearch | cold | 0.60 | 4.40 | 0.60 | FAIL | | 1440 | ListSearch | warm | 0.70 | 0.70 | 0.70 | FAIL | | 1440 | NotePicker | cold | 17.00 | -71.90 | 17.00 | pass | | 1440 | NotePicker | warm | 10.60 | -106.80 | 10.60 | pass | | 1440 | Notification | cold | 1.00 | -1.20 | 0.00 | pass | | 1440 | Notification | warm | 1.10 | 0.80 | 1.10 | pass | | 1440 | Palette | cold | 0.40 | 0.90 | 0.40 | FAIL | | 1440 | Palette | warm | 0.20 | -15.40 | 0.20 | pass | | 1440 | Settings | cold | 1.70 | -5.00 | 1.70 | pass | | 1440 | Settings | warm | 1.90 | -1.90 | 1.90 | pass | FAIL: 3 of 32 cold/warm comparisons failed; 672 measurements; 7 repetitions per cell. 1440 ListSearch cold: base=11.400000 ms, base2=12.000000 ms, head=15.800000 ms, delta=4.400000 ms > allowance=0.600000 ms 1440 ListSearch warm: base=26.700000 ms, base2=26.000000 ms, head=27.400000 ms, delta=0.700000 ms > allowance=0.700000 ms 1440 Palette cold: base=42.300000 ms, base2=42.700000 ms, head=43.200000 ms, delta=0.900000 ms > allowance=0.400000 ms ``` Verbatim final bundle gate output: ```text | metric | Home | unit | n | p50 | p95 | max | budget | | |---|---:|---|---:|---:|---:|---:|---|---| | `web.bundle.all_css_brotli` | - | KB | 1 | 32.8 | 32.8 | 32.8 | | | | `web.bundle.all_css_gzip` | - | KB | 1 | 37.6 | 37.6 | 37.6 | | | | `web.bundle.all_css_raw` | - | KB | 1 | 176 | 176 | 176 | | | | `web.bundle.all_js_brotli` | - | KB | 1 | 295 | 295 | 295 | p95 ≤ 300 | ok | | `web.bundle.all_js_gzip` | - | KB | 1 | 344 | 344 | 344 | | | | `web.bundle.all_js_raw` | - | KB | 1 | 1018 | 1018 | 1018 | | | | `web.bundle.first_css_brotli` | - | KB | 1 | 20.7 | 20.7 | 20.7 | p95 ≤ 22.1 | ok | | `web.bundle.first_css_gzip` | - | KB | 1 | 23.6 | 23.6 | 23.6 | | | | `web.bundle.first_css_raw` | - | KB | 1 | 120 | 120 | 120 | | | | `web.bundle.first_js_brotli` | - | KB | 1 | 238 | 238 | 238 | p95 ≤ 240 | ok | | `web.bundle.first_js_gzip` | - | KB | 1 | 280 | 280 | 280 | | | | `web.bundle.first_js_raw` | - | KB | 1 | 846 | 846 | 846 | | | | `web.bundle.plugins_css_brotli` | - | KB | 1 | 0.00 | 0.00 | 0.00 | | | | `web.bundle.plugins_css_gzip` | - | KB | 1 | 0.00 | 0.00 | 0.00 | | | | `web.bundle.plugins_css_raw` | - | KB | 1 | 0.00 | 0.00 | 0.00 | | | | `web.bundle.plugins_js_brotli` | - | KB | 1 | 37.9 | 37.9 | 37.9 | p95 ≤ 45 | ok | | `web.bundle.plugins_js_gzip` | - | KB | 1 | 42.9 | 42.9 | 42.9 | | | | `web.bundle.plugins_js_raw` | - | KB | 1 | 135 | 135 | 135 | | | ``` No merge, deploy, or issue closure.
Author
Owner

Finished bundle-room-5 at head c760aa00f7dde16abb89186cb4af2c7a8e018429, branch perf/bundle-room-5. New PR: #747, superseding #746. This uses a new branch because this forge ignores pushes to open PR branches.

All three requested timing cells PASS. Each has 21 alternating base/base2/head repetitions; all 189 functional timing cases pass. Baseline is 5ffd5dd79feabdca1b5dad7e4514e028ad56b554; base and base2 use the same production build. Measurements ran on an idle 10by32-01-std under the exclusive perf lock with Chromium at 4x CPU, disabled HTTP cache, fresh contexts and the unchanged timing harness. Only the three requested 1440 cells were selected. The 29 other cells retain their prior evidence and were not rerun.

The desktop inline filter and search cache are eager and unchanged from baseline. Diagnostic profiles and resource records showed no new module initialization or script fetch on focus or the first f key; the old head also passed all three cells in its separate 21-repetition run. No speculative filter preload or additional vault scan was added. A regression test now checks that first filtering needs no on-demand script or stylesheet. Palette did load its own chunk at the keyboard shortcut before idle. Control/Meta key intent now starts only that import before the shortcut's second key; idle and targeted pointer/focus loading remain.

Both typechecks, lint and bundle budgets pass. Web has 0 errors and the same 14 existing warnings. Targeted preload, lazy-ui, lazy-styled, list-search, keys-rings and keys-no-motion specs pass in Chromium/WebKit at 390/1440: 156 passed, 76 intentional layout skips. New keyboard intent coverage failed on the original build and passes after the fix. Independent code review found no issues. Working tree is clean. No evidence was committed.

Bootstrap intervals use 50,000 independent resamples of differences of medians with seed 689005, keeping every sample. Base minus base2 is reported signed, with its own 95% interval; the absolute difference of baseline medians is the measured noise allowance. These intervals include millisecond-scale variation; they do not claim sub-millisecond resolution.

Verbatim final timing gate output:

21 repetitions per variant per cell; 189 complete measurements.
Bootstrap: 50,000 independent resamples per difference of medians, percentile 95% interval, seed 689005. No samples excluded.
Acceptance: head minus base <= abs(base minus base2), or head minus base 95% interval includes zero.

| Width | Surface | State | Base ms | Base2 ms | Head ms | Head-base ms | Head-base 95% ms | Base-base2 ms | Base-base2 95% ms | Gate |
|---|---|---|---|---|---|---|---|---|---|---|
| 1440 | ListSearch | cold | 9.900000 | 10.100000 | 11.500000 | +1.600000 | [-0.900000, +3.200000] | -0.200000 | [-2.200000, +2.900000] | pass |
| 1440 | ListSearch | warm | 24.900000 | 26.700000 | 25.300000 | +0.400000 | [-2.900000, +2.800000] | -1.800000 | [-3.500000, +1.500000] | pass |
| 1440 | Palette | cold | 43.000000 | 42.300000 | 42.200000 | -0.800000 | [-3.000000, +1.100000] | +0.700000 | [-1.900000, +3.100000] | pass |

PASS: 0 of 3 timing cells failed; 189 measurements; 21 alternating base/base2/head repetitions per cell.

Verbatim final bundle gate output:

| metric | Home | unit | n | p50 | p95 | max | budget | |
|---|---:|---|---:|---:|---:|---:|---|---|
| `web.bundle.all_css_brotli` | - | KB | 1 | 32.8 | 32.8 | 32.8 |  |  |
| `web.bundle.all_css_gzip` | - | KB | 1 | 37.6 | 37.6 | 37.6 |  |  |
| `web.bundle.all_css_raw` | - | KB | 1 | 176 | 176 | 176 |  |  |
| `web.bundle.all_js_brotli` | - | KB | 1 | 295 | 295 | 295 | p95 ≤ 300 | ok |
| `web.bundle.all_js_gzip` | - | KB | 1 | 344 | 344 | 344 |  |  |
| `web.bundle.all_js_raw` | - | KB | 1 | 1018 | 1018 | 1018 |  |  |
| `web.bundle.first_css_brotli` | - | KB | 1 | 20.7 | 20.7 | 20.7 | p95 ≤ 22.1 | ok |
| `web.bundle.first_css_gzip` | - | KB | 1 | 23.6 | 23.6 | 23.6 |  |  |
| `web.bundle.first_css_raw` | - | KB | 1 | 120 | 120 | 120 |  |  |
| `web.bundle.first_js_brotli` | - | KB | 1 | 238 | 238 | 238 | p95 ≤ 240 | ok |
| `web.bundle.first_js_gzip` | - | KB | 1 | 280 | 280 | 280 |  |  |
| `web.bundle.first_js_raw` | - | KB | 1 | 846 | 846 | 846 |  |  |
| `web.bundle.plugins_css_brotli` | - | KB | 1 | 0.00 | 0.00 | 0.00 |  |  |
| `web.bundle.plugins_css_gzip` | - | KB | 1 | 0.00 | 0.00 | 0.00 |  |  |
| `web.bundle.plugins_css_raw` | - | KB | 1 | 0.00 | 0.00 | 0.00 |  |  |
| `web.bundle.plugins_js_brotli` | - | KB | 1 | 37.9 | 37.9 | 37.9 | p95 ≤ 45 | ok |
| `web.bundle.plugins_js_gzip` | - | KB | 1 | 42.9 | 42.9 | 42.9 |  |  |
| `web.bundle.plugins_js_raw` | - | KB | 1 | 135 | 135 | 135 |  |  |

Raw measurements for both complete runs, unchanged harness, bootstrap summary, diagnostic profiles and validation logs. Earlier 32-cell matrix and diagnostic traces.

No merge, deploy or issue closure.

Finished bundle-room-5 at head `c760aa00f7dde16abb89186cb4af2c7a8e018429`, branch `perf/bundle-room-5`. New PR: https://git.kayg.org/kayg/calternal/pulls/747, superseding #746. This uses a new branch because this forge ignores pushes to open PR branches. All three requested timing cells PASS. Each has 21 alternating base/base2/head repetitions; all 189 functional timing cases pass. Baseline is `5ffd5dd79feabdca1b5dad7e4514e028ad56b554`; base and base2 use the same production build. Measurements ran on an idle 10by32-01-std under the exclusive perf lock with Chromium at 4x CPU, disabled HTTP cache, fresh contexts and the unchanged timing harness. Only the three requested 1440 cells were selected. The 29 other cells retain their prior evidence and were not rerun. The desktop inline filter and search cache are eager and unchanged from baseline. Diagnostic profiles and resource records showed no new module initialization or script fetch on focus or the first f key; the old head also passed all three cells in its separate 21-repetition run. No speculative filter preload or additional vault scan was added. A regression test now checks that first filtering needs no on-demand script or stylesheet. Palette did load its own chunk at the keyboard shortcut before idle. Control/Meta key intent now starts only that import before the shortcut's second key; idle and targeted pointer/focus loading remain. Both typechecks, lint and bundle budgets pass. Web has 0 errors and the same 14 existing warnings. Targeted preload, lazy-ui, lazy-styled, list-search, keys-rings and keys-no-motion specs pass in Chromium/WebKit at 390/1440: 156 passed, 76 intentional layout skips. New keyboard intent coverage failed on the original build and passes after the fix. Independent code review found no issues. Working tree is clean. No evidence was committed. Bootstrap intervals use 50,000 independent resamples of differences of medians with seed 689005, keeping every sample. Base minus base2 is reported signed, with its own 95% interval; the absolute difference of baseline medians is the measured noise allowance. These intervals include millisecond-scale variation; they do not claim sub-millisecond resolution. Verbatim final timing gate output: ```text 21 repetitions per variant per cell; 189 complete measurements. Bootstrap: 50,000 independent resamples per difference of medians, percentile 95% interval, seed 689005. No samples excluded. Acceptance: head minus base <= abs(base minus base2), or head minus base 95% interval includes zero. | Width | Surface | State | Base ms | Base2 ms | Head ms | Head-base ms | Head-base 95% ms | Base-base2 ms | Base-base2 95% ms | Gate | |---|---|---|---|---|---|---|---|---|---|---| | 1440 | ListSearch | cold | 9.900000 | 10.100000 | 11.500000 | +1.600000 | [-0.900000, +3.200000] | -0.200000 | [-2.200000, +2.900000] | pass | | 1440 | ListSearch | warm | 24.900000 | 26.700000 | 25.300000 | +0.400000 | [-2.900000, +2.800000] | -1.800000 | [-3.500000, +1.500000] | pass | | 1440 | Palette | cold | 43.000000 | 42.300000 | 42.200000 | -0.800000 | [-3.000000, +1.100000] | +0.700000 | [-1.900000, +3.100000] | pass | PASS: 0 of 3 timing cells failed; 189 measurements; 21 alternating base/base2/head repetitions per cell. ``` Verbatim final bundle gate output: ```text | metric | Home | unit | n | p50 | p95 | max | budget | | |---|---:|---|---:|---:|---:|---:|---|---| | `web.bundle.all_css_brotli` | - | KB | 1 | 32.8 | 32.8 | 32.8 | | | | `web.bundle.all_css_gzip` | - | KB | 1 | 37.6 | 37.6 | 37.6 | | | | `web.bundle.all_css_raw` | - | KB | 1 | 176 | 176 | 176 | | | | `web.bundle.all_js_brotli` | - | KB | 1 | 295 | 295 | 295 | p95 ≤ 300 | ok | | `web.bundle.all_js_gzip` | - | KB | 1 | 344 | 344 | 344 | | | | `web.bundle.all_js_raw` | - | KB | 1 | 1018 | 1018 | 1018 | | | | `web.bundle.first_css_brotli` | - | KB | 1 | 20.7 | 20.7 | 20.7 | p95 ≤ 22.1 | ok | | `web.bundle.first_css_gzip` | - | KB | 1 | 23.6 | 23.6 | 23.6 | | | | `web.bundle.first_css_raw` | - | KB | 1 | 120 | 120 | 120 | | | | `web.bundle.first_js_brotli` | - | KB | 1 | 238 | 238 | 238 | p95 ≤ 240 | ok | | `web.bundle.first_js_gzip` | - | KB | 1 | 280 | 280 | 280 | | | | `web.bundle.first_js_raw` | - | KB | 1 | 846 | 846 | 846 | | | | `web.bundle.plugins_css_brotli` | - | KB | 1 | 0.00 | 0.00 | 0.00 | | | | `web.bundle.plugins_css_gzip` | - | KB | 1 | 0.00 | 0.00 | 0.00 | | | | `web.bundle.plugins_css_raw` | - | KB | 1 | 0.00 | 0.00 | 0.00 | | | | `web.bundle.plugins_js_brotli` | - | KB | 1 | 37.9 | 37.9 | 37.9 | p95 ≤ 45 | ok | | `web.bundle.plugins_js_gzip` | - | KB | 1 | 42.9 | 42.9 | 42.9 | | | | `web.bundle.plugins_js_raw` | - | KB | 1 | 135 | 135 | 135 | | | ``` [Raw measurements for both complete runs, unchanged harness, bootstrap summary, diagnostic profiles and validation logs](https://git.kayg.org/attachments/949b21cf-80b3-42b8-a958-4ebc6819dff0). [Earlier 32-cell matrix and diagnostic traces](https://git.kayg.org/attachments/b760fb92-86ea-4f95-b7bd-822b5e9e2120). No merge, deploy or issue closure.
Author
Owner

Superseded by #747 (same bundle trim plus idle preloading; timing acceptance passed), which goes to dev in train BM1. Closing.

Superseded by #747 (same bundle trim plus idle preloading; timing acceptance passed), which goes to dev in train BM1. Closing.
kayg closed this pull request 2026-10-28 21:58:36 +00:00
Some checks failed
CI / server (pull_request) Successful in 1m32s
CI / rust (pull_request) Successful in 14m29s
CI / web (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!746
No description provided.