Increase the number of "dart/melos runners" or "instances" #374
-
Hello, Now for my question, we have a project with roughly 10 packages (all local at the moment). We are only using a fraction of the features, mainly the following:
Before using melos we were using scripts to execute these commands on all packages - resulting in e.g. nearly 3 minutes for the pub get / packages get due to startup and shutdown times of the script. The build command took around 10 minutes. When running with melos it seems like the execution happens more or less concurrent - speeding up most stuff by a factor of 4. My question - is there any flag within melos which configures how many processes to run in parallel? The actual build time will most likely not benefit so much from "spawning" more processes (still might give it a try) - but the pub get scripts might become even faster if its possible to increase the number of proccesses. So maybe you can point me in the right direction (if you know what I am talking about) - maybe there is some setting in Dart or melos to increase the number of concurrent executions. If not - even the current reduction is awesome, thanks a lot again. Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can specify the concurrency |
Beta Was this translation helpful? Give feedback.
You can specify the concurrency
melos exec
uses with the--concurrency
option. The default value is hard-coded to 5, but the CPU count might actually make more sense.