suggest change

Ordered sequences may hurt performance when dealing with a large number of elements. To mitigate this, it’s possible to call AsUnordered when the sequence order is no longer necessary.

var sequence = Enumerable.Range(1, 10000).Select(x => -1 * x); // -1, -2, ...
var evenNumbers = sequence.AsParallel()
                          .OrderBy(x => x)
                          .Where(x => x % 2 == 0) // This line won't be affected by ordering

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents