Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] XSL: For-Each Efficient or Not?

From: Oleg Tkachenko <olegt@------------->
To:
Date: 7/1/2002 5:30:00 AM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent