Level Up Your PowerShell: Essential Tips, Tricks, and Techniques
summary
Shows that arrays and strings are immutable so repeated += or + on large sets becomes garbage‑collector churn (demo: milliseconds vs seconds at ~10k, now needs ~100k to show it) and recommends System.Collections.Generic.List[T] or ArrayList for fast appends and StringBuilder for large concatenation; explains pipeline copies objects by value so filter earlier or pass as parameters, uses Measure-Command and ForEach -Parallel (PowerShell 7) to prove performance, and details cmdletbinding, splatting, validation, begin/process/end and useful formatting tricks.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:15Arrays and strings optimization
- 15:56String formatting with here-strings
- 24:25Mastering the pipeline
- 32:11Function parameters and binding
- 42:34Objects output and formatting
- 51:41Key takeaways
- 1:05:12Q&A
related talks
51mDon't do that, do this instead: PowerShell worst practices and..
46mCan we Make PowerShell… Blazingly Fast?!
01h 37mMore Game Breaking PowerShell
01h 29mPerformance and Technique Tweaks: The Encore
40mCode Writing Code, say what now! Meta Programming and PowerShell
01h 45mWriting Award Winning PowerShell Functions and Script Modules
47mTempting Fate: Patterns & practices for shareable scripts and functions
45mBullet-proofing Patterns & Practices
