r/PowerShell • u/secretGeek • Apr 16 '18
Powershell #Performance Tip
To make your #powershell go faster, you need to hashtag any slow line.
Put a '#' character at the start of any line that's too slow.... watch how fast it goes now!
~sorry
0
Upvotes
6
3
u/microsoftblobs Apr 17 '18
Another performance tip.
At the start of your script:
break :exithereAt the end of your script:
:exithere2
6
u/lerun Apr 16 '18
If you put <# first in your code, and #> it runs even faster. #sorryNotSorry