Skip to content

parity_compile --cli: batch the CLI compiles - #103

Merged
plenarius merged 1 commit into
mainfrom
perf/parity-cli-batch
Oct 19, 2026
Merged

plenarius merged 1 commit into
mainfrom
perf/parity-cli-batch

Conversation

@plenarius

Copy link
Copy Markdown
Owner

parity_compile.py --cli started cleanmodels compile once per model, which was about two thirds of a full corpus run. It now compiles each directory's files in batches of 2000 with one call (--workers = CPU count) into an output directory and compares the outputs' hashes; a file the CLI refuses has no output, as before.

Measured on 4,104 game models (every 8th): 178 s → 81 s for the compile step, the CLI part 105 s → 10 s. Results unchanged (all identical).

Checked that it still catches a difference: with a fake CLI that corrupts one output per call, exactly those files are reported as bytes differ from the CLI's.

Only the test script changes; nothing it tests.

…one cleanmodels call instead of one process per file
@plenarius
plenarius merged commit 3ae0f76 into main Oct 19, 2026
9 checks passed
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