Skip to content

Commit 2c96cfa

Browse files
committed
Eliminate the parallelization overhead when not needed
Revert "Run the parallel worker even for a low number of files" This reverts commit 2159057.
1 parent 376f52a commit 2c96cfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Command/AnalyserRunner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function runAnalyser(
8080
$mainScript = $_SERVER['argv'][0];
8181
}
8282

83-
if ($mainScript !== null && $schedule->getNumberOfProcesses() > 0) {
83+
if ($mainScript !== null && $schedule->getNumberOfProcesses() > 1) {
8484
$loop = new StreamSelectLoop();
8585
$result = null;
8686
$promise = $this->parallelAnalyser->analyse($loop, $schedule, $mainScript, $postFileCallback, $projectConfigFile, $tmpFile, $insteadOfFile, $input, null);

0 commit comments

Comments
 (0)