~/talk

Improve PowerShell Code Efficiency with .NET RunSpaces

slides:none on file

Demo shows using .NET runspaces to parallelize PowerShell work by instantiating runspace pool from System.Management.Automation, adding scripts with BeginInvoke/Invoke, and disposing pools afterward. A custom module (expand extender text report) and an invoke-extender-start-index runspace process large text reports and cuts an hours-long import to about 15 minutes in one case and a test of ~11,000 reports from ~63s to ~33s. Examples use Create, AddScript/AddCommand, and RunspaceFactory methods and measure real timing.

AI-written summary · about

  1. 0:00Introduction
  2. 1:55Synchronous processing importance
  3. 3:21Asynchronous processing methods
  4. 6:55PowerShell and .NET basics
  5. 9:02.NET namespaces overview
  6. 12:36Classes and methods in .NET
  7. 15:07Assemblies in PowerShell
  8. 21:56Creating .NET RunSpaces
  9. 24:30RunSpace execution
  10. 26:42RunSpace pools explained
  11. 31:52Practical RunSpace demo
  12. 34:17Real-world performance fix
  13. 37:40Live performance demo
  14. 41:37Best practices
  15. 42:43Further learning resources
~/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.