Skip to content

Commit 89189ca

Browse files
authored
Merge pull request #155 from codelion/feat-move-to-parallel-process-evaluation
Switch to process-based parallelism and remove threading
2 parents 6264c74 + c2f668a commit 89189ca

File tree

7 files changed

+746
-370
lines changed

7 files changed

+746
-370
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ OpenEvolve implements a comprehensive evolutionary coding system with:
5656
- **Error Recovery**: Robust checkpoint loading with automatic fix for common serialization issues
5757

5858
#### 🚀 **Performance & Scalability**
59-
- **Threaded Parallelism**: High-throughput asynchronous evaluation pipeline
59+
- **Process-Based Parallelism**: True parallel execution bypassing Python's GIL for CPU-bound tasks
6060
- **Resource Management**: Memory limits, timeouts, and resource monitoring
6161
- **Efficient Storage**: Optimized database with artifact management and cleanup policies
6262

openevolve/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Version information for openevolve package."""
22

3-
__version__ = "0.0.20"
3+
__version__ = "0.1.0"

openevolve/controller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from openevolve.evaluator import Evaluator
1717
from openevolve.llm.ensemble import LLMEnsemble
1818
from openevolve.prompt.sampler import PromptSampler
19-
from openevolve.threaded_parallel import ImprovedParallelController
19+
from openevolve.process_parallel import ProcessParallelController
2020
from openevolve.utils.code_utils import (
2121
extract_code_language,
2222
)
@@ -257,7 +257,7 @@ async def run(
257257

258258
# Initialize improved parallel processing
259259
try:
260-
self.parallel_controller = ImprovedParallelController(
260+
self.parallel_controller = ProcessParallelController(
261261
self.config, self.evaluation_file, self.database
262262
)
263263

@@ -439,7 +439,7 @@ async def _run_evolution_with_checkpoints(
439439
)
440440

441441
# Check if shutdown was requested
442-
if self.parallel_controller.shutdown_flag.is_set():
442+
if self.parallel_controller.shutdown_event.is_set():
443443
logger.info("Evolution stopped due to shutdown request")
444444
return
445445

0 commit comments

Comments
 (0)