Skip to content

Commit 085fd6c

Browse files
Use full CPU count for thread workers
1 parent 2bba45b commit 085fd6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ try {
5555
cpuCount = 1
5656
}
5757
function parseThreadWorkerCount(envValue, cpuCount) {
58-
const maxWorkers = Math.max(1, cpuCount - 1)
58+
const maxWorkers = Math.max(1, cpuCount)
5959
if (envValue !== undefined && envValue !== null) {
6060
const rawStr = String(envValue).trim()
6161
if (/^[1-9]\d*$/.test(rawStr)) {

0 commit comments

Comments
 (0)