I’ve noticed that the “cmf” command seems to have about 20 seconds of overhead before it starts doing anything. Below, I simply timed “cmd --help”. I’d expect this to execute instantaneously, but even this takes 20 seconds?
Why is this? Is there a way to avoid this overhead? When we do a complete build, we call “cmf build” and “cmf pack” on each of our 15 customization packages. That’s 30 calls with 20 seconds of overhead on each for a total of 600 seconds or 10 minutes! Given that a complete build of all packages takes about 18 minutes, this overhead is accounting for more than half of the build time.
time cmf --help
Description:
Critical Manufacturing CLI
Usage:
cmf [command] [options]
Options:
-l, --loglevel <Debug|Error|Information|Verbose|Warning> Log Verbosity [default: Verbose]
-v, --version Show version information
-?, -h, --help Show help and usage information
Commands:
assemble Assemble all unreleased packages as release candidates. Also generate a dependency file with all needed released packages. [default: .]
build [default: .]
bump [default: .]
init Initialize the content of a new repository for your project [rootPackageName: Cmf.Custom.Package, workingDir: .]
ls [default: .]
login <CIFS|Docker|NPM|NuGet|Portal> Login into one or more package respositories
new
pack [default: .]
plugins Search for plugins for the CLI
upgrade Project upgrade utilities
restore [default: .]
portal
dev
real 0m21.508s
user 0m2.898s
sys 0m0.236s