mirror of
https://github.com/lovell/sharp.git
synced 2025-12-06 03:51:40 +01:00
Docs: libvips manages its own thread pool (#4455)
This commit is contained in:
parent
3498eb63e3
commit
c446d743a2
@ -17,8 +17,8 @@ before the Node.js process starts to increase the thread pool size.
|
|||||||
export UV_THREADPOOL_SIZE="$(lscpu -p | egrep -v "^#" | sort -u -t, -k 2,4 | wc -l)"
|
export UV_THREADPOOL_SIZE="$(lscpu -p | egrep -v "^#" | sort -u -t, -k 2,4 | wc -l)"
|
||||||
```
|
```
|
||||||
|
|
||||||
libvips uses a glib-managed thread pool to avoid the overhead of spawning new threads.
|
libvips uses a shared thread pool to avoid the overhead of spawning new threads.
|
||||||
The size of the shared thread pool will grow on demand and shrink when idle.
|
The size of this thread pool will grow on demand and shrink when idle.
|
||||||
|
|
||||||
The default number of threads used to concurrently process each image is the same as the number of CPU cores,
|
The default number of threads used to concurrently process each image is the same as the number of CPU cores,
|
||||||
except when using glibc-based Linux without jemalloc, where the default is `1` to help reduce memory fragmentation.
|
except when using glibc-based Linux without jemalloc, where the default is `1` to help reduce memory fragmentation.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user