[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Wide Finder in XSLT --> deriving new requirements
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|