Repository navigation
Commit ad5bde5
committed
perf: use up to 6 threads by default
With generators streaming into each other, more threads now pay off.
On Node.js's docs, medians of 5 runs, the site build took 7.64s at 4
threads, 6.48s at 6 and 6.66s at 8, peaking at 1.9GB, 2.3GB and 2.7GB.
The legacy build kept getting faster at 8, but by only another 5% for
320MB more. Machines with fewer CPUs are unaffected, as the default is
the CPU count up to this ceiling.
Keeping Rolldown and Rayon at 4 threads while doc-kit used 6 or 8 was
slower and saved no memory, so the bundler still gets doc-kit's count.
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 36b4da5 commit ad5bde5
3 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments