[core] cpus*2 for UV_THREADPOOL_SIZE

This commit is contained in:
devlikepro committed 2025-07-25 12:46:33 +07:00
1 parent bcc25ef42f
commit 42019644f0
1 file changed
+1 -1
+1 -1
View File
@@ -10,7 +10,7 @@ cpus=$(node -e "const os = require('os'); console.log(os.cpus().length);" 2>/dev
case $cpus in
''|*[!0-9]*) cpus=1 ;;
esac
uv_threadpool_size=$(($cpus * 1))
uv_threadpool_size=$(($cpus * 2))
# Check if uv_threadpool_size is less than 4 (default), set it to 4 if it is
if [ "$uv_threadpool_size" -lt 4 ]; then