xsl-list
[Top] [All Lists]

RE: RE: failure notice

2005-08-04 06:40:03
 
Having more templates is probably more efficient than having 
a long list of xsl:if or xsl:when tests as a system 
(probably) uses some kind of hash table lookup to find 
matching templates but a long list of xsl:when tests 
(probably) is searched in linear order so has expected tme 
proportional to the length of the list of tests.

From a practical rather than performance point of view, if you are using an
IDE you can locate individual templates more easily than digging around a
choose/when.  A similar problem occurs with unions eg match="foo|bar" gets
put under 'f' in the list of templates, so when you go searching for the
'bar' template you either have to have an intimate knowledge of your match
patterns or resort to ctrl->f...

andrew


--~------------------------------------------------------------------
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>