Repository navigation
perf(bench): batch the template fan-out coverage pass by bytes #1373 - #2200
Merged
Merged
Conversation
Signed-off-by: Nik Cubrilovic <[email protected]>
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.
Follow-up to #2195 (#1373). The coverage pass batched by page count. On openelectricity.org.au (~1.7 MB HTML/page) the default
--batch 200peaked at ~6.6 GB RSS, while--batch 25peaked at 1.2-1.8 GB (Daytona sandbox, 11-21).Now the pass fills each batch until ~256 MB of HTML (UTF-8 bytes) or
--batchpages (ceiling), whichever first; an oversized single page is its own batch. New--batch-bytesoption. Storage is read 25 pages at a time. Helper:apps/cli/scripts/byte-batches.ts(takeByteBatch,byteBatches).Tests:
apps/cli/tests/coverage-byte-batches.test.ts(cap, ceiling, once-in-order, read overshoot, streamed == all-at-once for current and derived). Mutating the cap check fails 2 of them.Gates: cli format:check, lint, typecheck clean; test-suites --check ok; audit-engine suite 2379 pass, 0 fail. No public API change, no changelog entry. The squirrelscan agent skill needs no change.