3 ms·
> I was disappointed in how clunky it was to make a foreach-object -like pipeline utilize a sensible number of processes Yes, that's a common complaint. And Po
by jodrellblank 7y ago
> I was disappointed in how clunky it was to make a foreach-object -like pipeline utilize a sensible number of processes
Yes, that's a common complaint. And PowerShell 7 has just gained this with a new `foreach-object -parallel` parameter:
https://github.com/PowerShell/PowerShell/pull/10229 https://github.com/PowerShell/PowerShell/pull/10229
Which should help at least some cases. (PoshRsJob is a reasonably easy / fast way to use multiple processors inside the same overall Powershell process (with RunSpaces).