Files
PowerShell-PowerShell/test/powershell/Language
Jason Shirk bd9e49d8d9 Make Out-Null fast (#2629)
People use Out-Null despite much faster alternatives:

    $null = Do-Stuff
    [void] = Do-Stuff
    Do-Stuff > $null

This change makes Out-Null work in roughly the same say as the above.

The optimization is to detect that we're calling the built-in Out-Null
cmdlet when invoking a pipeline from script (the change won't have any
effect in the PowerShell api). If we detect Out-Null, we rewrite the
pipe to look similar to `Do-Stuff > $null`.
2016-11-11 11:29:53 -08:00
..
2016-08-25 17:49:32 +00:00
2016-07-27 12:06:51 -07:00
2016-11-11 11:29:53 -08:00
2016-09-16 16:54:48 -07:00