Has anyone tried using the UV_THREADPOOL_SIZE environment variable?

前端 未结 2 722
南方客
南方客 2020-12-29 12:03

One of the changes made by Ben Noordhius in Node v0.10.0 was to \"honor UV_THREADPOOL_SIZE environment variable\" in Unix. The \"threadpool.c\" source file seems to do just

2条回答
  •  清酒与你
    2020-12-29 12:33

    If you're running a Windows OS and running via a .js file you'll need to set the UV_THREADPOOL_SIZE prior to calling the script via node.

    Example: SET UV_THREADPOOL_SIZE = 2 && node my-file-to-run.js

提交回复
热议问题