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

RE: XPath for matching multiple child elements

Subject: RE: XPath for matching multiple child elements
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 29 Sep 2006 16:20:06 +0100
RE:  XPath for matching multiple child elements
> And while we're at it, could you comment on the performance 
> implications of a near-identity first pass in a pipeline (in 
> which, if you liked, you could rename the elements)? I guess 
> this would generally tend simply to double the time of the 
> transform? 

I'm seeing 3800ms for putting a 10Mb document through an identity transform,
4960ms for putting it through two identity transforms in series. That's
because the transformation cost for a simple serial transformation is
roughly comparable with the parsing and serialization costs: about 1200ms
each in this case. It uses twice the memory though, which may be a more
important factor.

In sum, is your assessment that none of these 
> tricks for maintainability (which all involve their 
> tradeoffs) are worth it, and one is just better off biting the bullet?

In 90% of applications better maintainability is worth having at the cost of
a bit of performance. For example, a pipeline architecture that modularizes
the transformation is almost always a good idea if it it takes a bit longer.
(concerning which, see http://www.w3.org/XML/XProc/docs/langspec.html if you
haven't already done so. This is an important development for the XSLT
community).

But in this example, I'm not convinced any of the suggestions have delivered
better maintainability.

Michael Kay
http://www.saxonica.com/

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-2011 All Rights Reserved.