WIP: Finish lazy surface first-use checks (#689), supersedes #724 #725

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

Refs #689. Supersedes #724 on a new branch rebased onto dev 5ffd5dd79f, which includes the repaired CI. The product change from #724 is unchanged. Budgets remain unchanged.

Local Chromium first-use and animation measurements are running under build-slot.sh at 4x CPU, 390x844 and 1440x900, three repetitions per surface and warm/cold state, against the original base and head and the rebased head. Results will be added to #689 and this description. Web CI for this exact head must pass before this is ready. No merge or deploy.

Refs #689.

The dev build had almost no room under its unchanged JS budgets. This change removes unused DOM schema allocations from the bundle, compresses the screens already warmed together at idle into one chunk, and loads the notification host through the existing lazy UI recovery interface. Queued notifications and in-bar Undo stay available while the fallback host loads. The capsule's existing width override now wins regardless of stylesheet arrival order.

Normal production builds on the same host and base:

JS brotli Before After Reduction
Total 299.94 KB 293.00 KB 6.94 KB
First-load 239.78 KB 231.99 KB 7.79 KB

The reference figures in the job were 299.53 KB and 239.38 KB; the reductions also exceed the requested targets against those figures. No budgets changed. Top-30 module estimates, the before/after gate tables, and regression evidence are on issue #689. No measurement artifacts are committed.

Validation:

  • Bundle gate, editor/web typecheck, and filter-motion lint passed. Web typecheck reports 0 errors and 14 existing warnings.
  • Unit tests: 299 editor tests and 38 UI tests passed.
  • Targeted browser suite: 158 passed, 54 skipped by viewport/browser conditions, no failures. Follow-up recovery and move-to-note checks: 6 passed, 2 skipped. All runs used chromium-1440, chromium-390, webkit-1440, webkit-390, workers=1, under build-slot.sh.
  • The new cold-host test preserves queued Undo and checks stylesheet availability on each rendered frame in Chromium and WebKit phones. Existing gutter tests cover actual layout at 320, 360 and 375 px, light and dark.
  • A clean-cache frozen install reproduced both dependency patches.

The new shared-chunk CSS failure test retains unsaved edits, recovers by reload, and renders Settings with the recovered stylesheet. Review also caught and fixed a lazy stylesheet cascade regression; the unchanged baseline passed the original gutter test and the corrected implementation now passes it.

This PR remains work in progress because first-use latency and timed frame acceptance on 10by32-01-std could not run. The repository's VM IPv4 address has no route from this host; SSH to the VM's IPv6 address times out. No performance run was substituted onto this shared host.

Refs #689. Supersedes #724 on a new branch rebased onto dev 5ffd5dd79feabdca1b5dad7e4514e028ad56b554, which includes the repaired CI. The product change from #724 is unchanged. Budgets remain unchanged. Local Chromium first-use and animation measurements are running under build-slot.sh at 4x CPU, 390x844 and 1440x900, three repetitions per surface and warm/cold state, against the original base and head and the rebased head. Results will be added to #689 and this description. Web CI for this exact head must pass before this is ready. No merge or deploy. Refs #689. The dev build had almost no room under its unchanged JS budgets. This change removes unused DOM schema allocations from the bundle, compresses the screens already warmed together at idle into one chunk, and loads the notification host through the existing lazy UI recovery interface. Queued notifications and in-bar Undo stay available while the fallback host loads. The capsule's existing width override now wins regardless of stylesheet arrival order. Normal production builds on the same host and base: | JS brotli | Before | After | Reduction | |---|---:|---:|---:| | Total | 299.94 KB | 293.00 KB | 6.94 KB | | First-load | 239.78 KB | 231.99 KB | 7.79 KB | The reference figures in the job were 299.53 KB and 239.38 KB; the reductions also exceed the requested targets against those figures. No budgets changed. Top-30 module estimates, the before/after gate tables, and regression evidence are on issue #689. No measurement artifacts are committed. Validation: - Bundle gate, editor/web typecheck, and filter-motion lint passed. Web typecheck reports 0 errors and 14 existing warnings. - Unit tests: 299 editor tests and 38 UI tests passed. - Targeted browser suite: 158 passed, 54 skipped by viewport/browser conditions, no failures. Follow-up recovery and move-to-note checks: 6 passed, 2 skipped. All runs used chromium-1440, chromium-390, webkit-1440, webkit-390, workers=1, under build-slot.sh. - The new cold-host test preserves queued Undo and checks stylesheet availability on each rendered frame in Chromium and WebKit phones. Existing gutter tests cover actual layout at 320, 360 and 375 px, light and dark. - A clean-cache frozen install reproduced both dependency patches. The new shared-chunk CSS failure test retains unsaved edits, recovers by reload, and renders Settings with the recovered stylesheet. Review also caught and fixed a lazy stylesheet cascade regression; the unchanged baseline passed the original gutter test and the corrected implementation now passes it. This PR remains work in progress because first-use latency and timed frame acceptance on 10by32-01-std could not run. The repository's VM IPv4 address has no route from this host; SSH to the VM's IPv6 address times out. No performance run was substituted onto this shared host.
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
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:32 +00:00
Some checks failed
CI / server (pull_request) Successful in 1m18s
CI / rust (pull_request) Failing after 3m54s
CI / web (pull_request) Failing after 2h38m29s

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