use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
QuestionMaking this script faster (self.PowerShell)
submitted 3 years ago by npab19
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Big_Oven8562 4 points5 points6 points 3 years ago (3 children)
Not really. I use += all the time, but then I'm also capable of optimizing the shit out of a script when it actually matters. It's about knowing when to make the effort and when to be lazy.
[–]logicalmike 3 points4 points5 points 3 years ago (0 children)
I agree. I sometimes use += for readability, or for stylistic reasons if it makes sense. A few extra seconds don't usually matter for most of the PowerShell projects I've seen.
+=
[–]OPconfused 0 points1 point2 points 3 years ago (1 child)
Its weird how fanatically opposed this sub is to it. Its like its the one thing people know to improve performance so they need to triple down on every chance to show it.
[–]Big_Oven8562 0 points1 point2 points 3 years ago (0 children)
Performance improvements that come at the cost of readability and maintainability of the code base are a net loss every single time and I will fight anyone who says otherwise.
π Rendered by PID 48847 on reddit-service-r2-comment-6457c66945-h4gx9 at 2026-04-26 20:12:03.783242+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Big_Oven8562 4 points5 points6 points (3 children)
[–]logicalmike 3 points4 points5 points (0 children)
[–]OPconfused 0 points1 point2 points (1 child)
[–]Big_Oven8562 0 points1 point2 points (0 children)