xsl-list
[Top] [All Lists]

RE: [xsl] When/How to use templates, and when to use if/choose

2007-06-20 01:11:55
What happens in terms of performance? 

Performance depends on the product. 

(a) Some products are much faster than others

(b) Different products optimize different features of the language.

Never make guesses about the performance of particular constructs in the
absence of specific measurements.

In Saxon, an apply-templates that selects into a set of 100 template rules
each of which matches a different element name will be *much* faster than an
xsl:choose with 100 xsl:when clauses. Other products may differ. But I have
never come across anyone with a performance problem where template matching
played a significant role. 


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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>