关于[How to Beat Array Iteration Performance with Parallelism in C# .NET]的摘要:
Let’s consider a simple programming challenge: Summing all elements in a large array. Now it stands to reason that this can be easily optimized by using parallelism. Especially for huge arrays with thousands or millions of elements. It also stands to reason that the processing time with parallelism should take as much as regular time divided by the number of CPU cores. As it turns out, this feat is not that easy to achieve. I’ll show you several ways to do this in parallel, how they improve or degrade performance and all the little details that affect performance one way or the other.
原文地址: https://michaelscodingspot.com/array-iteration-vs-parallelism-in-c-net/