Skip to content

Commit bba12f2

Browse files
authored
perf(executors): prewarm pooled shells (#13)
1 parent ac3a7e1 commit bba12f2

21 files changed

Lines changed: 1451 additions & 309 deletions
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@execbox/process": patch
3+
"@execbox/worker": patch
4+
---
5+
6+
Improve pooled executor warmup so `prewarm()` runs a real no-op QuickJS session inside each warmed shell before it is returned to the pool. This reduces first-request startup work for warmed worker and process executors.
7+
8+
`WorkerExecutor` now also uses a CPU-aware default pooled `maxSize`, capped at `4`, instead of always defaulting to a single worker shell.

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.worktrees
2+
docs/.vitepress/cache
3+
docs/.vitepress/dist
24
node_modules
35
package-lock.json
46
packages/**/dist

0 commit comments

Comments
 (0)