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

Re: Performance Question: Expensive Functions in Predi

Subject: Re: Performance Question: Expensive Functions in Predicates
From: Eliot Kimber <ekimber@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 03 Jun 2004 10:06:18 -0500
predi
M. David Peterson wrote:

Hi Eliot,

Im interested to know more of how you came to these conclusions while also ignoring the use of xpath within apply-templates/@select to do the bulk of your node selection?

I think you may have misread my conclusion: I said that the select-based approach is the most attractive *from a code maintenance and simplicity standpoint* because it both avoids the need for a separate catch-all template required by the match-based approach and avoids the separate if statement required by the unqualified select and match approach.


Your performance measurements then demonstrate that the select-based approach is *also* the highest performing, which I guess I should have been able to predict for the reasons you stated (it results in the fewest overall node tests being performed).

Therefore I think we are in agreement that putting the qualification in the apply-templates processing is the overall best solution in general and that using IF within templates is clearly the worst. It also seems likely that differences in XSTL implementation optimization strategies will not significantly change the results.

Cheers,

E.
--
W. Eliot Kimber
Professional Services
Innodata Isogen
9030 Research Blvd, #410
Austin, TX 78758
(512) 372-8122

eliot@xxxxxxxxxxxxxxxxxxx
www.innodata-isogen.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-2013 All Rights Reserved.