Codex spawns processes millions of times a week — the fix pays off

charliermarsh · x · 2026-11-25

Thread wrap-up: Codex constantly creates processes — shells (including Code Mode invocations), local MCP servers, hooks — millions of times per week, so spawn optimization pays off hugely. On macOS, they call posixspawn directly to work around a relative-executable bug in posixspawnp.

Related event: Codex speeds up process spawning 800x by replacing fork with posix_spawn(8 posts)→

Original post →

More from coding & agent

coding & agent channel →