BrandGhost
Write FAST C# Code - Task.WhenAll vs Parallel.ForEachAsync in DotNet

Write FAST C# Code - Task.WhenAll vs Parallel.ForEachAsync in DotNet

You've found yourself trying to optimize your algorithm and the only way you can see to squeeze out more performance is to run things in parallel. We can use a parallel foreach or we can look at task when all in C#! So, do you go with Task.WhenAll or do you leverage Parallel.ForEachAsync? Let's use BenchmarkDotNet and have the benchmarks speak for themselves. For more videos on programming with detailed examples, check this out: https://www.youtube.com/playlist?list=PLzATctVhnsghN6XlmOvRzwh4JSp...
An error has occurred. This application may no longer respond until reloaded. Reload