PowerShell Techniques and Performance Tweaks - Full Throttle
summary
Shows measured wins from using .NET 9/10 APIs inside PowerShell 7.6: LINQ-style methods beat Group-Object on large lists, one aggregation run cuts runtime to about half and scales better at 500k–5M rows, and aggregateBy in .NET 10 reduces code and overhead. Demonstrates chunking quirks of the built-in Chunk operator, JSON schema validation that reports multiple parameter errors, a priority queue with custom comparer and numeric ordering, dedupe via HashSet of concatenated PSObject properties, and events via Register-ObjectEvent/timers/filesystemwatcher for resilient automation.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:38Session agenda
- 3:08LINQ for large datasets
- 8:01PowerShell 7.6 performance
- 13:09Chunking arrays in PS
- 18:14JSON schema validation
- 23:06Prioritizing tasks with PriorityQueue
- 28:24String comparison ordering
- 30:14Custom events in PowerShell
- 33:54Timer and filesystem events
- 37:11Versioning and string padding
- 39:30Finding unique objects
- 43:15Variable drives and providers
- 47:37Comparison operators
- 49:07String matching
- 50:14Date-only objects in PS 7.6
related talks
34mWhip Your Scripts into Shape: Optimizing PowerShell for Speed
01h 33mFinding Performance Bottlenecks with PowerShell
43mParallel Execution with PowerShell
01h 31mThe Full Show
01h 03mThe Zen of Powershell - PowerShell for the C# dev
27mLeverage Multi-Threading for Speeding Up Your Scripts
53mState of the Shell
01h 23mPowerShell 2018: State of the Art
