r/PowerShell • • 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

4 comments sorted by

6

u/lerun Apr 16 '18

If you put <# first in your code, and #> it runs even faster. #sorryNotSorry

6

u/Raymich Apr 16 '18

Put “exit” on very top of your script and watch it fly.

3

u/microsoftblobs Apr 17 '18

Another performance tip.

At the start of your script:

break :exithere

At the end of your script:

:exithere

2

u/[deleted] Apr 16 '18

Quality shit post. +1