WIP: Make room under unchanged JS budgets (#689) #724

Closed
kayg wants to merge 1 commit from perf/bundle-room into dev
Owner

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. 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 1m33s
CI / rust (pull_request) Successful in 15m46s
CI / web (pull_request) Failing after 1h0m3s
e5eb9ed19a
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:31 +00:00
Some checks failed
CI / server (pull_request) Successful in 1m33s
CI / rust (pull_request) Successful in 15m46s
CI / web (pull_request) Failing after 1h0m3s

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