feat: integrate parallel evaluator into FunctionOptimizer#2126
Closed
KRRT7 wants to merge 2 commits into
Closed
Conversation
This was referenced May 7, 2026
Closed
Line profiler needs @Profile instrumented in the main tree, so it must run after candidate selection rather than inside the worktree. This method handles write → profile → restore for the parallel path. Also adds # mypy: ignore-errors — this file has 181 pre-existing mypy errors unrelated to this PR.
Wires the parallel evaluation path into _evaluate_candidates: - Checks --parallel-candidates flag to branch between sequential/parallel - Batches candidates with dedup/normalization gating - Dispatches repair and refinement futures from evaluation results - Calls _run_line_profiler_for_winner after selection New methods: _evaluate_candidates_parallel, _dispatch_refinement, _dispatch_repair_if_possible.
31be51f to
a47cfad
Compare
ec123fd to
22736d3
Compare
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.
wires the parallel evaluator into the optimization loop. adds:
_run_line_profiler_for_winnerhelper (extract-method refactor)_evaluate_candidates_parallelonFunctionOptimizer— forms batches up to pool_size, deduplicates via normalized code, dispatches results back into the candidate forestdepends on #2125 (evaluator).
this is PR 3/4 in a stack. review and merge in order: