[Home] [By Thread] [By Date] [Recent Entries]
On Sat, 10 Nov 2007 18:57:29 -0700, Dimitre Novatchev
<dnovatchev@xxxxxxxxx> wrote:
Worth making note of is Joe Cheng's solution[1] to Wide Finder in LINQ which higlights how one could use PLINQ to gain support for parallel processing by "(in the code above, simply change bfrom line in datab to bfrom line in data.AsParallel()b)". In short, the method of using a single attribute to specify the number of threads to use I believe makes a lot of sense, and is similar to the approach they plan to use in PLINQ if/when it ships. NOTE: To those unaware, LINQ and XQuery are eerily similar in both syntax and functionality. Mapping the LINQ solution to XQuery would be a piece of cake, and then using the XQuery code as the basis for writing it correctly using templates would result in something similar to Dimitre's solution. Or you could just use Dimitre's solution from the get go. ;-) [1] http://jcheng.wordpress.com/2007/10/02/wide-finder-with-linq/ -- /M:D M. David Peterson http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155
|

Cart



