From a382968f5c552b109133783a90433ba05a86c6b0 Mon Sep 17 00:00:00 2001 From: Sander Ronde Date: Sat, 16 Dec 2023 19:05:17 +0100 Subject: [PATCH] Don't use parallel analyser if it doesn't save time --- src/Command/AnalyserRunner.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Command/AnalyserRunner.php b/src/Command/AnalyserRunner.php index 6e5a92467d..2b0d936cae 100644 --- a/src/Command/AnalyserRunner.php +++ b/src/Command/AnalyserRunner.php @@ -62,6 +62,7 @@ public function runAnalyser( && function_exists('proc_open') && $mainScript !== null && $schedule->getNumberOfProcesses() > 0 + && count($files) > 1 ) { $loop = new StreamSelectLoop(); $result = null;