Conversation
1. Running totals for the status line. print_stats recounted every mutant's verdict on every loop iteration, quadratic over a run and paid again on a rerun just to skip cached results. ProgressCounter computes the totals once and adjusts them per verdict. 2. Batched meta writes. Every finished mutant rewrote its whole .meta file. register_result now marks the file dirty; the loop flushes dirty files every two seconds and at the end, also on interrupt. A crash loses at most two seconds of verdicts, which are re-tested. 3. Precompiled tree. The single-process stats run compiled every generated file on first import. precompile_mutants byte-compiles the mutated source paths with a worker pool right after generation; up-to-date .pyc files are skipped.
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.
Running totals for the status line. print_stats recounted every mutant's verdict on every loop iteration, quadratic over a run and paid again on a rerun just to skip cached results. ProgressCounter computes the totals once and adjusts them per verdict.
Batched meta writes. Every finished mutant rewrote its whole .meta file. register_result now marks the file dirty; the loop flushes dirty files every two seconds and at the end, which can combine updates from multiple mutants. A SIGTERM will flush the last batch, but a crash loses at most two seconds of verdicts that the next run will have to re-compute.
Precompiled tree. The single-process stats run compiled every generated file on first import. precompile_mutants byte-compiles the mutated source paths with a worker pool right after generation; up-to-date .pyc files are skipped.