Files
PowerShell/src/System.Management.Automation/engine
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-09-28 15:47:08 -07:00
2016-11-11 11:29:53 -08:00
2016-08-01 15:57:03 -07:00
2016-08-03 12:06:06 -07:00
2016-08-03 12:06:06 -07:00
2016-08-03 12:06:06 -07:00
2016-08-03 12:14:28 -07:00
2016-08-03 12:06:06 -07:00
2016-08-01 15:57:03 -07:00