You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AsParallel() here is only going to affect the ToArray call, which isn't parallelizable on its own. Presumably the intention was to parallelize the Select.ToArray, in which case the AsParallel needs to be moved to before the Select call:
If it's not desirable to parallelize the Select call (e.g. if InstallPackages isn't safe to be invoked in parallel or if InstallPackages won't benefit from being invoked in parallel), then the .AsParallel() should just be removed.
The text was updated successfully, but these errors were encountered:
In this code, the AsParallel() is effectively a nop:
sdk/src/Cli/dotnet/commands/dotnet-tool/restore/ToolRestoreCommand.cs
Lines 100 to 103 in b122320
The AsParallel() here is only going to affect the ToArray call, which isn't parallelizable on its own. Presumably the intention was to parallelize the Select.ToArray, in which case the AsParallel needs to be moved to before the Select call:
If it's not desirable to parallelize the Select call (e.g. if InstallPackages isn't safe to be invoked in parallel or if InstallPackages won't benefit from being invoked in parallel), then the
.AsParallel()
should just be removed.The text was updated successfully, but these errors were encountered: