IMJLA / Export-Permission

Create CSV, HTML, and XML reports of permissions
MIT License
5 stars 1 forks source link

Look for use cases for $input #65

Open IMJLA opened 6 months ago

IMJLA commented 6 months ago

$input is ancient PowerShell v1

In a scriptblock it contains every input to the scriptblock at that point in time

in the end block, $input contains every input

It is faster than accumulating input in the process block

Watch Out: $input can only be read once

IMJLA commented 6 months ago

suspected use case in PsRunspace module

IMJLA commented 6 months ago

Implemented in Split-Thread only due to simplest direct replacement

Need to evaluate impact to see if it is worth rearchitecting any other functions to take advantage of the perf improvement