Spawn task experiment
Tests how fast it is to run gulp tasks in child processes
Run task in child process:
var makeItFaster = spawn; gulp;
Run task in worker pool:
var makeItFaster = ; gulp;
Notes:
- All wrapped functions need to be self-contained
- Using worker pool prevents parent process exit, so it might be usable only when watch is running
- Worker pool starts re-using child processes only after maxConcurrentWorkers limit has been reached (default is
cpus().length
)