Supercharging PowerShell with LINQ
summary
Promises a reproducible path to raw .NET speed inside PowerShell: LINQ expressions and compiled delegates convert script-block predicates into real delegates, yielding near-C# performance; a lookup demo runs about 30x faster than Group-Object, AST parsing over ~2,500 modules drops from ~30s to much less and PLINQ parallelism adds another ≈10x on multicore machines. Includes Pester benchmarks, a progress-wrapper enumerable that works, and shows AI can generate the expression trees used.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 2:01What is LINQ and why use it
- 4:51Demo: Intersecting two arrays
- 10:05Demo: Finding even numbers
- 19:26Understanding enumerables
- 21:37Demo: Grouping inventory data
- 31:02Demo: AST parsing for migration
- 42:06Key takeaways
- 45:37Q&A
related talks
34mWhip Your Scripts into Shape: Optimizing PowerShell for Speed
43mSupercharge Your PowerShell - Harnessing...
43mParallel Execution with PowerShell
27mLeverage Multi-Threading for Speeding Up Your Scripts
01h 33mFinding Performance Bottlenecks with PowerShell
01h 28mWriting Compiled PowerShell Cmdlets
45mInteractive Enhancements to PowerShell
01h 03mThe Zen of Powershell - PowerShell for the C# dev
