composer-run-parallel
composer-run-parallel copied to clipboard
High CPU usage
Hi,
I observe high CPU usage when run any task in parallel, even is same task runs perfect when i run it normally. It's happend even on such simple script like:
"php1": "@php -r \"sleep(60); echo 1;\"",
I noticed this issue on two total different system configurations (Windows both).
What could be causing this?
Hello,
Thanks for reporting. I don't see any performance issues from my end at the moment on Mac.
Are you using a recent version of composer?
This package uses solely the parallel functionality that is available in composer. So if there is a performance issue, it is most likely in composers loop or async task executor.
See https://github.com/veewee/composer-run-parallel/blob/4da6da5631d95c56b7534b55c6aa4a0b3075094c/src/Executor/AsyncTaskExecutor.php#L37
Yes, v2.1.14.
Closing this because of inactivity. Feel free to reopen if this is still a problem or if you have more information on what is causing this performance issue. Haven't been able to reproduce from my side.