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

Re: Ordering of Blocks based on Input/Output

Subject: Re: Ordering of Blocks based on Input/Output
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Wed, 09 May 2001 17:56:49 +0100
Re:  Ordering of Blocks based on Input/Output

Jeni Tennison wrote:
> 
> 
> If you want
> to 'assume no optimisation' (one of Mike Kay's tips) completely, then
> really you should use test="$todo[1]".
> 
Ouch. Yup.

> Here's my crack at the problem, which is basically the same as yours
> except that I'm applying templates and hence stepping through the
> blocks one by one.
> 

> 
> I really don't know about the relative performance of the two - Dan,
> you'd have to try it out.  
> 
Yes, I think we need some larger test data sets if we want to take
performance discussions beyond generalities. It would also help to have
some idea of what environment the XSLT will be executing in, what are
the parser choices, what kind of performance you're getting at the
moment and what kind of performance you need to get.

> 
> And actually, the templates in both could take advantage of the
> set:difference() extension function, which would make clearer what was
> going on, and would improve performance if it was implemented
> intelligently:
> 
Absolutely. Some optimisation here could get pretty near the heart of
the problem. On the other hand we could end up with a situation where we
have to check each parser for the relative speed of:

	$left[count(. | $next) > 1]
v.
	$left[generate-id(.) != generate-id($next)]
v. 
	set:difference($left, $next)

(Just joking, I trust...)

Francis.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.