Performance and Technique Tweaks: The Encore
summary
Shows a concrete implementation of Smart Aliases that inspects MyInvocation to map alias names to resources and uses dynamic parameters to make some aliases require a country, demonstrates creating a clickable file view with a PSM1 XML view generator (credits to Jeffrey Hick), proves PowerShell 7.5 fixes += so array concatenation cost drops (10000 appends ≈1s before), builds a frozen dictionary pattern to make module private data truly immutable, and compares runspace data passing, LINQ/C# Fibonacci speedups, and sorting/uniquing benchmarks so listeners know what actually works.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 2:00Recap of technique tweaks
- 3:11Smart Aliases for API
- 13:55Dynamic parameter handling
- 23:50Custom views for object output
- 34:40PowerShell array performance
- 43:06Passing data across runspaces
- 48:28Storing module configuration
- 59:53PowerShell vs C# performance
- 1:04:13LINQ in PowerShell
- 1:09:02Parameter passing by reference
- 1:16:32Default values and safety
- 1:18:00Efficient sorting and deduplication
- 1:26:35Generalized deduplication
- 1:28:42Q&A
related talks
51mDon't do that, do this instead: PowerShell worst practices and..
48mUnexplained phenomena: powerful tricks you likely didn't know were even possible
01h 16mLevel Up Your PowerShell: Essential Tips, Tricks, and Techniques
40mCode Writing Code, say what now! Meta Programming and PowerShell
45mInteractive Enhancements to PowerShell
43mPowerShell Tooling
01h 37mMore Game Breaking PowerShell
01h 32mOptimizing Visual Studio Code for PowerShell, 2023 Edition
