Preload split UI and prepare Palette on keyboard intent #747

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

Palette now prepares its own chunk when Control or Meta is pressed, before the shortcut's second key. Existing split surfaces still preload after paint or on targeted pointer/focus intent and reuse resolved components. Desktop filtering stays eager; new tests verify focus and the first f key request no on-demand JavaScript or CSS.

Supersedes #746 and #726 for #689. Head c760aa00f7dde16abb89186cb4af2c7a8e018429 on perf/bundle-room-5.

The three previously failing 1440 timing cells pass with 21 alternating base/base2/head repetitions each (189 functional passes), 4x CPU, disabled HTTP cache and the unchanged harness under the exclusive perf lock on 10by32-01-std. Medians, bootstrap 95% intervals for head minus base, and base minus base2 are in the attached evidence and issue comment. All original-head comparisons also passed in an independent 21-repetition run. The other 29 previously passing cells were not rerun, as requested.

Both typechecks, lint and the unchanged bundle budgets pass. Web typecheck has 0 errors and 14 existing warnings. Targeted Chromium/WebKit specs at 390/1440 pass: 156 cases, 76 intentional layout skips. The keyboard intent regression test failed on the old build and passes on the changed build. Independent code review found no issues.

First-load JS is 237.54 KB and total JS 294.54 KB (Brotli). Measurements, harness, diagnostic profiles and validation logs. No merge or deploy.

Palette now prepares its own chunk when Control or Meta is pressed, before the shortcut's second key. Existing split surfaces still preload after paint or on targeted pointer/focus intent and reuse resolved components. Desktop filtering stays eager; new tests verify focus and the first f key request no on-demand JavaScript or CSS. Supersedes #746 and #726 for #689. Head `c760aa00f7dde16abb89186cb4af2c7a8e018429` on `perf/bundle-room-5`. The three previously failing 1440 timing cells pass with 21 alternating base/base2/head repetitions each (189 functional passes), 4x CPU, disabled HTTP cache and the unchanged harness under the exclusive perf lock on 10by32-01-std. Medians, bootstrap 95% intervals for head minus base, and base minus base2 are in the attached evidence and issue comment. All original-head comparisons also passed in an independent 21-repetition run. The other 29 previously passing cells were not rerun, as requested. Both typechecks, lint and the unchanged bundle budgets pass. Web typecheck has 0 errors and 14 existing warnings. Targeted Chromium/WebKit specs at 390/1440 pass: 156 cases, 76 intentional layout skips. The keyboard intent regression test failed on the old build and passes on the changed build. Independent code review found no issues. First-load JS is 237.54 KB and total JS 294.54 KB (Brotli). [Measurements, harness, diagnostic profiles and validation logs](https://git.kayg.org/attachments/949b21cf-80b3-42b8-a958-4ebc6819dff0). 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
Prepare Palette on keyboard intent before first use
Some checks failed
CI / server (pull_request) Successful in 1m21s
CI / rust (pull_request) Failing after 3m16s
CI / web (pull_request) Has been cancelled
c760aa00f7
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

Closing: head c760aa00 is already in dev (reached via 3d23809c); nothing left to merge. Branch kept.

Closing: head c760aa00 is already in dev (reached via 3d23809c); nothing left to merge. Branch kept.
kayg closed this pull request 2026-11-04 13:04:36 +00:00
Some checks failed
CI / server (pull_request) Successful in 1m21s
CI / rust (pull_request) Failing after 3m16s
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!747
No description provided.