News for hackers. Stuff that matters.
Re:O(N^2) in CreateProcess by seba_dos1 on Monday April 22, 2019 @10:58AM (#19719404)
The article literally answers that. It's very common for unit tests and building infra, especially when ported from POSIX systems.
Re:O(N^2) in CreateProcess by MaulingMonkey on Monday April 22, 2019 @11:28AM (#19719641)
And as for why you might want to spawn processes in these cases - it helps isolate memory corruption, other unrecoverable process failures, or even just issues like memory fragmentation to a specific unit test / file build - so that issues building/testing X don't show up as intermitent failures that get misattributed to building/testing Y.

As a workaround for perf issues like the article, you might choose to reuse the same process more instead, but it's a tradeoff.

Re:O(N^2) in CreateProcess by varelaz on Monday April 22, 2019 @11:34AM (#19719695)
Sorry, I thought problem is with thousands parallel processes execution. There problem is with some remainings from previous process runs.
Re:O(N^2) in CreateProcess by seba_dos1 on Monday April 22, 2019 @12:41PM (#19720371)
...or with the fact that they're constantly being created and destroyed as some tests/build tasks finish and the new ones are spawned.