composer-run-parallel icon indicating copy to clipboard operation
composer-run-parallel copied to clipboard

High CPU usage

Open bbprojectnet opened this issue 3 years ago • 2 comments

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?

bbprojectnet avatar Dec 15 '21 14:12 bbprojectnet

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

veewee avatar Dec 15 '21 17:12 veewee

Yes, v2.1.14.

bbprojectnet avatar Dec 17 '21 07:12 bbprojectnet

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.

veewee avatar Nov 04 '22 08:11 veewee