[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354 | http://dev.aol.com/blog/3155
Re: [xsl] Wide Finder in XSLT --> deriving new requirements for efficiency in XSLT processors.
Subject: Re: [xsl] Wide Finder in XSLT --> deriving new requirements for efficiency in XSLT processors. From: "M. David Peterson" <m.david@xxxxxxxxxxxxx> Date: Sun, 11 Nov 2007 08:36:30 -0700 |
On Sat, 10 Nov 2007 18:57:29 -0700, Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote:
So, let's propose a par:threads="N" attribute for acceptance at exslt.org.
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Wide Finder in XSLT --> d, Dimitre Novatchev | Thread | Re: [xsl] Wide Finder in XSLT --> d, Andrew Welch |
Re: [xsl] translation() function?, Mukul Gandhi | Date | [xsl] problem with creating structu, Andreas Peter |
Month |
Keywords