Skip to content

Commit d86271a

Browse files
committed
fixup! src: set UV_THREADPOOL_SIZE based on available parallelism
1 parent a460cf1 commit d86271a

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
@@ -4066,6 +4066,15 @@ Wed May 12 2021 20:30:48 GMT+0100 (Irish Standard Time)
40664066

40674067
### `UV_THREADPOOL_SIZE=size`
40684068

4069+
<!-- YAML
4070+
changes:
4071+
- version: REPLACEME
4072+
pr-url: https://github.com/nodejs/node/pull/61533
4073+
description: Node.js now automatically sets `UV_THREADPOOL_SIZE` to the
4074+
available CPU parallelism (with a minimum of 4 and a maximum
4075+
of 1024) when the environment variable is not already set.
4076+
-->
4077+
40694078
Set the number of threads used in libuv's threadpool to `size` threads.
40704079

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

0 commit comments

Comments
 (0)