Reply to post: Re: Wow

Latest sneak peek at PowerShell 7 ups the telemetry but... hey... is that an off switch?

Scott 26

Re: Wow

Up to now you had to rely on this trick:

$result = 1..15000 |

ForEach-Object {

"Line $_"

}

becomes

$result = 1..15000 |

& { process {

"Line $_"

}}

for about a 200x increase in speed....

-parallel SHOULD be better

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon