Skip to content

Speed up Zarr viewer startup - #113

Merged
neuromechanist merged 1 commit into
mainfrom
feature/zarr-viewer-startup-perf
Jun 12, 2026
Merged

neuromechanist merged 1 commit into
mainfrom
feature/zarr-viewer-startup-perf

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

  • avoid blocking initial viewer render on event-table reads and view-pyramid discovery
  • coalesce rapid render requests so one interaction burst does not start overlapping Zarr reads
  • use the dataset Zarr index to mark available recordings and prefetch store/group metadata before open

Measurement

Tested locally on nm000132, sub-001/eeg/sub-001_task-MMN_eeg.set, measuring click-to-first-frame with Playwright.

Baseline main: 3151 ms, 3643 ms, 5656 ms.
Feature branch: 3473 ms cold-ish after dev-server optimization, then 1503 ms and 1454 ms warm.

The steady-state click-to-first-frame path is about 58-74% faster than the baseline sample.

Verification

  • bun run lint
  • bun run typecheck
  • bun run test
  • bun run build

Note: a few additional files have Biome-only formatting changes from running the formatter over src.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying nemar-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5d7a316
Status: ✅  Deploy successful!
Preview URL: https://93a0a243.nemar-website.pages.dev
Branch Preview URL: https://feature-zarr-viewer-startup.nemar-website.pages.dev

View logs

@neuromechanist
neuromechanist merged commit 2ab5087 into main Jun 12, 2026
1 check passed
@neuromechanist
neuromechanist deleted the feature/zarr-viewer-startup-perf branch June 12, 2026 21:59
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