User Tools

Site Tools


notes:csharp:linq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
notes:csharp:linq [2019/01/18]
leszek [Operators]
notes:csharp:linq [2020/01/28] (current)
leszek [PLINQ]
Line 774: Line 774:
   * Parallel Language-Integrated Query (PLINQ) can turn a sequential query into a parallel one.    * Parallel Language-Integrated Query (PLINQ) can turn a sequential query into a parallel one. 
   * Parallel processing does not guarantee any particular order. ​   * Parallel processing does not guarantee any particular order. ​
-  * Extension methods for using PLINQ are defined in the //​System.Linq.ParallelEnumerable//​ class. ​+  * Extension methods for PLINQ are defined in the //​System.Linq.ParallelEnumerable//​ class
 +  * PLINQ is used to help with parallelization of LINQ to Objects. It does not parallelize LINQ to SQL or Entity Framework algorithms
  
-Methods ​that can be used to alter how the query behaves:+Methods used with PLINQ:
   * //​AsUnordered//​ - Makes an ordered query unordered. Unordered queries are more efficient than ordered ones.   * //​AsUnordered//​ - Makes an ordered query unordered. Unordered queries are more efficient than ordered ones.
   * //​AsSequential//​ - Disables parallelization.   * //​AsSequential//​ - Disables parallelization.
Line 794: Line 795:
     Console.WriteLine(i);​     Console.WriteLine(i);​
  
-// Note that the result is usually in a different order as input, ​ +// Note that the result is usually in a different order as input, for example: 0 4 6 8 2 
-// for example: 0 4 6 8 2 +
 </​code>​ </​code>​
  
notes/csharp/linq.1547850233.txt.gz · Last modified: 2019/01/18 by leszek