We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 585cca9 commit 20d862eCopy full SHA for 20d862e
Engine/Helper.cs
@@ -151,6 +151,9 @@ public void Initialize()
151
ruleArguments = new Dictionary<string, Dictionary<string, object>>(StringComparer.OrdinalIgnoreCase);
152
commandInfoCache = new ConcurrentDictionary<string, CommandInfo>(StringComparer.OrdinalIgnoreCase);
153
runspacePool = RunspaceFactory.CreateRunspacePool(InitialSessionState.CreateDefault2());
154
+
155
+ // After some experimentation, I found out that setting max runspaces more than 3 has marginal returns.
156
+ runspacePool.SetMaxRunspaces(3);
157
runspacePool.Open();
158
159
IEnumerable<CommandInfo> aliases = this.invokeCommand.GetCommands("*", CommandTypes.Alias, true);
0 commit comments