Skip to content

Overlap bounded first compressed term group with worker startup - #990

Merged
aehlke merged 1 commit into
developfrom
codex/jmdict-first-read-overlap-20261129
Nov 29, 2026
Merged

aehlke merged 1 commit into
developfrom
codex/jmdict-first-read-overlap-20261129

Conversation

@aehlke

@aehlke aehlke commented Nov 29, 2026

Copy link
Copy Markdown

Change

Start only the first byte-balanced compressed source group before parser workers finish startup, allowing bounded ZIP reads to overlap module compilation/readiness. Gate the prefetch at the existing 24 MiB group target; larger groups retain the current startup order. The test covers source failure, startup failure, cancellation, and an oversized first group.

Evidence

  • Diagnostic JMdict traces show the first 8.67 MB group ready 22–33 ms before worker readiness, hiding roughly 10 ms of baseline source wait. The capped predicate is true for this group; 25 MiB estimates are covered by a no-prefetch startup test.
  • Six fresh-profile Settings import + first ordinary hydrated termsFind pairs had equal term count, result count, full result digest, warm/restart lookup digest, and OPFS file sizes. Paired total median was −47.4 ms (candidate minus baseline), MAD 70.3 ms, candidate won 5/6. The host was heavily loaded (roughly 25–29 one-minute and 59–76 five-minute load averages), so this is inconclusive; no whole-path speed claim is made.
  • Sampled paired peak browser-process RSS delta median was −8 MiB (MAD 112 MiB); OPFS logical file sizes were identical. The RSS sum includes shared pages.

Checks

  • npm run test:unit — 701 files, 15,909 passed, 47 skipped
  • npm run test:build
  • npm run test:ts:main
  • npm run test:ts:test
  • Focused ESLint on the changed files (only an existing vendor warning)

Detailed receipts and reports are retained at /Users/alex/Code/manabi/QualificationEvidence/manabitan-jmdict-overlap-rebased-20261129/paired-endpoint/.

@aehlke
aehlke merged commit efa17f8 into develop Nov 29, 2026
33 checks passed
@aehlke
aehlke deleted the codex/jmdict-first-read-overlap-20261129 branch November 29, 2026 08:55
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