Offshoot from #6021, a single call to fork()
seems to take about 15ms (!) (at least, in the context of Shell).
An exec()
call is also fairly slow, but not as slow as fork()
.
Here's a profile of running sleep 0
ten times in a loop (look at 1250-1658ms), where fork
and exec
together take up ~28% of the runtime: profile.tar.gz
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too