Codex cuts process spawn time 800x to 0.25ms via direct posix_spawn

charliermarsh · x · 2026-11-25

charliermarsh reports that Codex now spawns processes dramatically faster when the app server itself uses significant memory: on macOS with 20 GB resident memory in the parent, launches went from 200ms to 0.25ms (800x). Follow-up: the bug lives in posixspawnp, which also searches PATH, so macOS calls posixspawn directly; on Linux they spawn themselves with posixspawn, do unsupported setup, then exec the command — counterintuitively adding an extra exec to go faster.

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 →