Codex replaced fork+exec with posix_spawn to kill spawn overhead

charliermarsh · x · 2026-11-25

The thread's key fix: since the inherited memory is discarded by exec anyway, Codex switched to posixspawn, which avoids duplicating the parent's address space in the first place and sidesteps fork's cost.

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

Original post →

More from coding & agent

coding & agent channel →