← Back to context

Comment by int_19h

4 years ago

It's not just that; process creation in Win32 is generally slower / more expensive, and has been since forever.

Very true (hence "most" not "all" in my statement :) ), but with AV disabled it's more or less on par with MacOS: https://www.bitsnbites.eu/benchmarking-os-primitives/ (not the best comparison given the wide variety of hardware in play, but for orders of magnitude it's probably good enough)

File creation on Windows is similarly massively impacted by search & AV.

I don't think there's anything fundamental to make WIN32 process creation slow.

Whereas fork() has copying semantics that necessarily make it slower than alternatives like vfork().

  • I don't think there's anything inherent to the semantics of Win32 CreateProcess that makes it slow. But there's clearly something inherent to NT architecture that does, because it was just as true 25 years ago as it is today.