May 2010
Intermediate to advanced
1272 pages
61h 18m
English
AsParallel and Binary OperatorsThere are situations in which you use operators that take two data sources; among such operators, there are the following binary operators: Join, GroupJoin, Except, Concat, Intersect, Union, Zip, and SequenceEqual. To take advantage of parallelism with binary operators on two data sources, you need to invoke AsParallel on both collections, as demonstrated by the following code:
Dim result = firstSource.AsParallel.Except(secondSource.AsParallel)
The following code still works but it won’t take advantage of parallelism:
Dim result = firstSource.AsParallel.Except(secondSource)
Read now
Unlock full access