~/talk

Whip Your Scripts into Shape: Optimizing PowerShell for Speed

links:none on file
slides:none on file

Demo-heavy session that actually measures results: uses Stopwatch vs Measure-Command and runs each case 100 times, dropping fastest and slowest. Shows concrete speedups — console output removal saves ~13 ms, filtering with WinEvent drops 2.5 s to ~15 ms, replacing pipeline aliases nearly halves runtime, switching pipeline ForEachObject to language foreach gives ~33% faster, using ArrayList Add method avoids reallocations, and PoshRSJob parallelization turns an ~8 s sequence into ~2 s. Tools: PoshRSJob, PowerShell Universal Dashboard, EventToast.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:08Testing methodology
  3. 6:56Reducing console chatter
  4. 8:31Filtering for efficiency
  5. 10:34Optimizing commands
  6. 13:31Working with filesystems
  7. 15:35Efficient loops
  8. 16:55Optimizing data handling
  9. 18:50DotNet and overhead
  10. 20:20Collection methods
  11. 23:00Parallel processing
  12. 25:37Conclusion and takeaways
~/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.