Counterintuitive fix on Linux: an extra exec makes spawning faster

charliermarsh · x · 2026-11-25

When setup isn't supported by posixspawn, Codex's Linux approach is: use posixspawn to spawn itself, do the setup in the new process, then exec the target command — counterintuitively adding an extra exec to make the whole thing faster.

Related event: Codex Cuts Process Startup Time 800x by Replacing fork+exec with posix_spawn(7 posts)→

Original post →

More from coding & agent

coding & agent channel →