Skip to content
This repository was archived by the owner on Dec 3, 2018. It is now read-only.

Commit c9cda61

Browse files
author
Dane Springmeyer
committed
at startup set the UV_THREADPOOL_SIZE to ensure optimal performance with >= node v0.10.x - closes #16
1 parent 233369c commit c9cda61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env node
22

3+
// increase the libuv threadpool size to 1.5x the number of logical CPUs.
4+
process.env.UV_THREADPOOL_SIZE = Math.ceil(Math.max(4, require('os').cpus().length * 1.5));
5+
36
var _ = require('underscore');
47
var qs = require('querystring');
58
var tm = require('./lib/tm');

0 commit comments

Comments
 (0)