Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Commit

Permalink
set threadpool size for node v0.10.x - closes tilemill-project#2061 -…
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Sep 27, 2013
1 parent 825c4e6 commit f8ce107
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env node

// increase the libuv threadpool size to 1.5x the number of logical CPUs.
process.env.UV_THREADPOOL_SIZE = Math.ceil(Math.max(4, require('os').cpus().length * 1.5));

var fs = require('fs');
var path = require('path');
// node v6 -> v8 compatibility
Expand Down

0 comments on commit f8ce107

Please sign in to comment.