Repository navigation
Improve performance script analyzer - #247
Conversation
There was a problem hiding this comment.
Do you need to initialize an initial count ?
There was a problem hiding this comment.
Oh i don't need that countdownevent actually. Forgot to remove it. Updated!
|
Otherwise, looks good to me. |
|
Quoc. Can you summarize the changes here? Need this for the release notes |
There was a problem hiding this comment.
Remove commented code
|
Improve the performance of PSScriptAnalyzer by running the default rules in parallel using System.Threading.Task. It is important to note that any rules that use powershell.invoke cannot be run in parallel using this method (hence why we only apply it to the default rules). |
|
looks good. Do you know how long the test pass takes with/without the changes? |
|
It's only 2 or 3 seconds faster because the tests run small scripts (which means that the improvement from running the rules in parallel won't be noticeable). If you run this with the DoPx module of Kirk for example, then it is almost twice as fast (same if we run on a long script like PSGet.psm1 where it can be 3 or even 4 times faster). |
|
Merged the changes. |
Improve performance script analyzer
No description provided.