[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: ?Could sort+ be quicker than for-each not precedin

Subject: RE: ?Could sort+ be quicker than for-each not preceding
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 18 Jun 2004 17:08:12 +0100
xsl not equal to
> 
> For large <for-each not preceding> would it be quicker to do
> sort list
> when current-node not equal to immediately-preceding-sibling then DO
> otherwise look for the next following-sibling not equal to 
> current-node

Yes, this would almost certainly be faster.
> ?
> 
> I don't know if internally Saxon already does something 
> similar to this. Or is finding immediate siblings costly?
> 

If you use <xsl:for-each-group group-by=expression>, Saxon will build a hash
table to group the nodes, which is probably more efficient than anything you
could achieve by hand.

Michael Kay


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.