Speedup cold runs of PSSA by using a runspace pool and parallelizing the slowest rule (AvoidAlias) by bergmeister · Pull Request #1178 · PowerShell/PSScriptAnalyzer

Conversation

@bergmeister

…ng PowerShell for CommandInfo.

There are only 4 rules that could call the CommandInfoCache, therefore sizing the pool to 5. The pool creation is synchronous and adds 15ms of initialization overhead, which we can neglect I think.
…nsive command lookup in AvoidAlias, which is the most expensive rule. To accomodate the higher parallel demand, increase runspace pool.

@rjmholt

Co-Authored-By: bergmeister <c.bergmeister@gmail.com>
…nalyzer into Performance_RunspacePool_AndSpeedupAvoidAlias

Resolved by taking upstream changes
# Conflicts:
#	Rules/AvoidAlias.cs

@JamesWTruher