Spawning a lightweight early copy then forking cuts memory footprint ~30x

steipete · x · 2026-11-25

Peter Steinberger shares his workaround for slow process spawns when the parent holds lots of memory: in claw/node he spawns a lightweight copy very early and then uses it to fork, typically achieving a 30x smaller memory footprint. A practical response to the news that Codex made process spawning 800x faster.

Original post →

More from coding & agent

coding & agent channel →