Yesterday I wrote: > posix_spawn is faster than fork()+exec() on Linux/glibc, because some > effort has been made to optimize that. I'm not aware of a similar effort > for Cygwin, and won't do it myself either.
The situation regarding posix_spawn on Cygwin is a bit complicated and not optimal. I wrote to the Cygwin people, in order to improve it: https://cygwin.com/pipermail/cygwin/2023-April/253495.html Bruno