Codex cuts process spawn from 200ms to 0.25ms by skipping a 20GB page-table copy
petrusenko_max · x · 2026-11-25
Codex now spawns processes much faster when the app server itself is using significant memory: on macOS with 20GB of resident memory in the parent, launch time dropped from 200ms to 0.25ms — an 800x speedup.
Developer petrusenkomax explains the mechanism in a reply: the 200ms was spent forking and copying a 20GB page table, and spawn simply skips that copy. A neat systems-level lesson: for large-memory server processes, the copy-on-write page-table copy in fork is often the dominant startup cost, and switching to spawn semantics sidesteps it entirely.
More from coding & agent
- HeyGen shares agent-ready guide to making shot-on-iPhone UGC videos with ChatGPT and Avatar 6 — HeyGen · 2026-11-25
- Gemini 4 Neon lands in OpenCode Console, now the team's default model — DynamicWebPaige · 2026-11-25
- Scientist World turns real papers into arenas where AI agents try to beat their authors — liuzhuang1234 · 2026-11-25
- Google Antigravity v2.35.0 ships during holidays: unlimited history, 20 improvements, Gemini 4 Neon — rseroter · 2026-11-25
- Cognition ships SWE-2.1 coding model: pure RL on Kimi K3, big benchmark gains, free for two weeks — nathanbenaich · 2026-11-25
- Why a general model for protein design: prompts replace chains of specialized tools — OpenAI · 2026-11-25