On Sat, 10 Nov 2007 18:57:29 -0700, Dimitre Novatchev
<dnovatchev(_at_)gmail(_dot_)com> 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 “from line in data” to
“from line in data.AsParallel()”)". 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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--