~/talk

Leverage Multi-Threading for Speeding Up Your Scripts

links:none on file
slides:none on file

Compares concrete methods: Remoting with -ThrottleLimit returns serialized objects unless variables are captured in the script block and runs about one second for the demo, PowerShell Jobs requires custom throttling and averages ~3 seconds, Runspaces uses a runspace pool with min/max and is fastest Runspaces ~0.5s and scales to 70+ Exchange servers across the world in ~30 seconds, ForEach-Parallel requires PowerShell V3 on targets and is inconsistent ForEach-Parallel V3 only Jobs ~3s

AI-written summary · about

  1. 0:00Multi-threading in PowerShell
  2. 1:07Why multi-threading is needed
  3. 3:35Remoting PowerShell demo
  4. 4:22Serialized output in remoting
  5. 7:18PowerShell jobs for multi-threading
  6. 10:08Runspaces for high performance
  7. 13:46ForEach-Object Parallel
  8. 18:02Performance comparison
  9. 22:12Choosing the right method
  10. 23:37Resources and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.