Restrict total threads

So machines with a small amount of cores build faster
This commit is contained in:
Peter Jaszkowiak
2017-05-18 17:50:49 -06:00
parent 7ccfb5cdc0
commit e8caee3c4c
2 changed files with 12 additions and 11 deletions

View File

@@ -2,7 +2,6 @@
var async = require('async');
var winston = require('winston');
var os = require('os');
var nconf = require('nconf');
var padstart = require('lodash.padstart');
@@ -181,7 +180,7 @@ function build(targets, callback) {
async.series([
beforeBuild,
function (next) {
var parallel = os.cpus().length > 1 && !nconf.get('series');
var parallel = !nconf.get('series');
if (parallel) {
winston.info('[build] Building in parallel mode');
} else {