Repository navigation
Reduce large-library row and highlight preparation work - #352
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 #248
Progressive source loads now publish the first available rows immediately and batch subsequent snapshots by growth, including the first 1,000 rows on tiny pages. Standalone sources skip the parts graph. Filtering builds a parent-title index only when a matching clause needs it. Note and annotation search results are narrowed before sorting. Collection highlight headings index their owners once and preserve first-match semantics.
Synthetic measurements on the rpnpm builder, Node 22.22.0, median of seven runs after one warm-up. Run
rpnpm --filter @mdbase-reader/app bench:library. The fixture starts with decoded 128-row pages, uses the production row-preparation functions on progress and completion, and supplies one highlight per source. Times exclude SDK I/O, DOM and paint.A separate Chromium run with the Reader app fixture mounted 27 source rows and 11 highlight cards at both sizes. Search returned the expected 100 and 1,000 sources with 27 mounted rows. For a 1,000-source library arriving one row per page, cumulative intermediate snapshot copies fell from 500,500 to 4,402 source references.
Shell investigation. A fresh Chromium profile on Reader production at
6147440abe50reproduced two online worker failures. Pages redirects/index.htmland/404.htmlwith 308s. Both clean URLs served the manifest hashes, the SDK 0.2.58 worker controlled the page with 229 cached entries, and the sample library reopened offline with HTTP 200 and zero page errors. Reader ships the original SDK runtime. The Pages browser audit now rejects unexpected same-origin online request failures, with a unit test for its two allowed redirect probes. The local production build passed this audit as well.No open Reader issues were listed at triage.