Repository navigation
Reduce Reader library hydration and long article setup work - #361
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #268
Changes
Paired Chromium measurements
Baseline
7f64f870ae4ccf979e2cff27d7241221b5cf2e50and candidate023dda30c0a02e3e88a0a0531b90c96c6d9a0771, using the same two fixtures. Nine alternating pairs per library size after one warm-up. Each cell shows baseline median / p95 → candidate median / p95, in milliseconds. With nine samples, p95 is the slowest observed run. The component timings use local stubbed SDK responses and include a timer turn per contract page. The browser timings use loopback fixtures with synthetic data. Live replica latency and production deployment were outside this run.Chromium
156.0.8078.4. The largest gains were in the 10,000-source contract walk (79 → 20 simulated requests), status switching, repeated-SVG sanitization, and TOC availability checks. The run recorded slower body-search medians, a slower first contract page, and a higher 10,000-source article-open p95. It did not establish a general search or article-open speedup.Reproduce
From the PR checkout, create a separate baseline worktree and apply the fixture-only changes.
Run these Vite commands in separate terminals, then run the comparison from the PR checkout.
Verification
rpnpm checkpassed, including lint, typecheck, workspace and repository tests, and catalogue validation.rpnpm build:productionand localMDBASE_ENV=production pnpm buildpassed. Localgit status --porcelainwas empty before and after the build.