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-10-14 15:43:00 -07:00
2016-11-04 16:33:35 -07:00
2016-11-04 16:33:35 -07:00
2016-11-04 16:33:35 -07:00
2016-11-11 11:12:07 -08:00
2016-11-04 16:33:35 -07:00
2016-11-04 16:33:35 -07:00
2016-11-04 16:33:35 -07:00
2016-11-04 16:33:35 -07:00
2016-11-04 16:33:35 -07:00
2016-11-04 16:33:35 -07:00
2016-11-11 11:12:07 -08:00
2016-11-11 11:12:07 -08:00
2016-11-11 11:12:07 -08:00
2016-11-11 11:12:07 -08:00
2016-11-04 16:33:35 -07:00
2016-11-11 11:12:07 -08:00
2016-11-11 11:12:07 -08:00
2016-11-04 16:33:35 -07:00
2016-11-04 16:33:35 -07:00
2016-11-11 11:12:07 -08:00
2016-11-04 16:33:35 -07:00
2016-11-11 11:12:07 -08:00
2016-11-11 11:12:07 -08:00
2016-11-04 16:33:35 -07:00
2016-11-04 16:33:35 -07:00
2016-11-11 11:12:07 -08:00
2016-11-04 16:33:35 -07:00
2016-11-04 16:33:35 -07:00
2016-11-04 16:33:35 -07:00
2016-11-11 11:12:07 -08:00
2016-11-04 16:33:35 -07:00
2016-11-11 11:12:07 -08:00
2016-11-10 09:51:29 -08:00
2016-10-21 14:12:10 -07:00
2016-10-26 15:25:09 -07:00
2016-11-11 11:12:07 -08:00
2016-11-11 11:12:07 -08:00
2016-11-04 16:33:35 -07:00
2016-10-14 10:02:44 -07:00
2016-09-01 15:56:23 +00:00
2016-06-13 17:39:11 -07:00
2016-11-11 11:29:53 -08:00
2016-11-11 11:12:07 -08:00
2016-11-11 11:12:07 -08:00
2016-10-21 17:04:05 -07:00