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

Re: XSL: For-Each Efficient or Not?

Subject: Re: XSL: For-Each Efficient or Not?
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Mon, 01 Jul 2002 16:31:41 +0200
Re:  XSL: For-Each Efficient or Not?
Schrooten, Ben wrote:
We have been trying to determine whether using XSL:For-Each is having an
impact on the speed of our document publishing. Some of my buddies don't
want to use xsl:for-each because they believe it causes the process to take
a longer amount of time than just doing a template match over and over. Is
this true or no? Is xsl:for-each a performance hog or does it and template
matching take the same amount of time?

I believe that's quite opposite - for-each is only about to evaluate expression and instantiate instructions within for each selected node, but using apply-templates it's also nessesary to match appropriate template, probably to up new stack frame etc. That's usually not much overhead, but it does exist and depends on the processor implementation.
Anyway that's not a reason to lose templates' virtues. Take a look at the list archive - there was a big discussion for-each vs templates this year.


--
Oleg Tkachenko
Multiconn International Ltd, Israel


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.