Skip to content

Commit 808db15

Browse files
committed
fixup! src: set UV_THREADPOOL_SIZE based on available parallelism
1 parent dc5a20c commit 808db15

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

doc/api/cli.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4055,6 +4055,15 @@ Wed May 12 2021 20:30:48 GMT+0100 (Irish Standard Time)
40554055

40564056
### `UV_THREADPOOL_SIZE=size`
40574057

4058+
<!-- YAML
4059+
changes:
4060+
- version: REPLACEME
4061+
pr-url: https://github.com/nodejs/node/pull/61533
4062+
description: Node.js now automatically sets `UV_THREADPOOL_SIZE` to the
4063+
available CPU parallelism (with a minimum of 4 and a maximum
4064+
of 1024) when the environment variable is not already set.
4065+
-->
4066+
40584067
Set the number of threads used in libuv's threadpool to `size` threads.
40594068

40604069
Asynchronous system APIs are used by Node.js whenever possible, but where they

0 commit comments

Comments
 (0)