Skip to content

[WIP] Upgrade Roc and migrate the homepage to Signals 0.7.0-rc1 - #15

Draft
lukewilliamboswell wants to merge 1 commit into
ageron:mainfrom
lukewilliamboswell:roc-signals-homepage
Draft

lukewilliamboswell wants to merge 1 commit into
ageron:mainfrom
lukewilliamboswell:roc-signals-homepage

Conversation

@lukewilliamboswell

Copy link
Copy Markdown
Collaborator

Work in progress. Please keep this in draft while we evaluate homepage startup and the notebook performance changes.

Changes

  • Pin Roc to 63434e9 and Zig to 0.17.1. Rebase the compiler embedding patch and adapt notebook analysis, evaluation, and cache handling to the new compiler APIs. Roc commit
  • Migrate the homepage to Roc Signals 0.7.0-rc1. The build prerenders /. Typed ports connect the homepage to browser recents, file opening, and local projects. Signals release notes
  • Package the generated HTML and fingerprinted Signals assets for the local server, Pages, and offline use. Update the pinned Plume, Roc parser, and Unicode dependencies and the affected demos and fixtures.

Preliminary performance

Medians compare this branch with Roclet 8476cc5 on one Ryzen 7 9700X running Linux and Chrome 153. Both revisions used their pinned toolchains and ReleaseFast adapters. Browser adapters used LLVM. The new native LLVM build ran out of memory during the comparison, so the native measurements use matched Zig self-hosted builds.

Homepage, cold cache Baseline This branch
First contentful paint, localhost 72 ms 72 ms
First contentful paint, throttled 100 ms 116 ms
Recents and file picker ready, localhost 82 ms 151 ms
Recents and file picker ready, throttled 158 ms 1,057 ms
Gzipped homepage transfer, throttled 206 KiB 1,064 KiB

The throttled runs used 40 ms added latency and 10 Mbit/s. First-paint ranges overlapped. The generated page already includes prerendered markup, and the runtime fetches the homepage WASM during startup. The page has no asset preload hints. The Signals app WASM accounted for 758 KiB of the gzipped transfer and the runtime another 89 KiB.

Browser notebooks and packaging Baseline This branch
Warm Wall Area edit 17.2 ms 12.2 ms
Warm imported-module edit 9.3 ms 8.2 ms
First imported-module evaluation after WASM download 453 ms 291 ms
First imported-module evaluation after worker restart with persisted cache 438 ms 284 ms
Warm WASM linear memory for the imported-module workload 71.6 MiB 49.0 MiB
Plume slider to chart ready 46.9 ms 72.1 ms
Gzipped notebook compiler WASM 12.2 MiB 9.6 MiB
Pages deployment ZIP 37.9 MiB 37.4 MiB

Plume worker evaluation rose from 37.7 ms to 56.8 ms. Chart rendering stayed near 5 ms. This comparison includes the Plume dependency upgrade.

Native notebook evaluation, fresh process Baseline This branch Peak RSS, baseline → this branch
10 cells 56.8 ms 151.5 ms 91 → 137 MiB
30 cells 131.3 ms 181.4 ms 101 → 143 MiB
60 cells 301.2 ms 238.4 ms 116 → 151 MiB

The home measurements use nine cold navigations per version and network profile. The workspace measurements use 15 runs with 25 measured edits per workload per run. The native results use 15 fresh processes per workload and version. The Plume results use 21 measured slider changes across three browser sessions per version.

Validation so far

  • Passed 119 Node tests and 32 Chrome suites, including homepage and local-project coverage.
  • Passed native/WASM parity checks and standalone demo runs.
  • Built the ReleaseFast package and verified 164 offline assets.

Further evaluation before merge

  • Measure cold and repeat homepage visits under deployment caching and compression. Check whether preloading the Signals assets improves readiness.
  • Reproduce the Plume regression with representative notebooks and isolate the compiler and package version changes.
  • Repeat the native measurements with matched LLVM release builds and compare startup and peak RSS across notebook sizes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant