Subject: Re: [xsl] XSL: For-Each Efficient or Not? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 01 Jul 2002 11:44:48 -0400 |
Cheers, Wendell
And the complexity of the template match expressions in the stylesheets. Simple tests on name or nodetype can be efficient but matches that involve predicates are generally harder for a processor to index. These can cause some processors to use sequential searching for a templates (slow for large numbers of templates). I have seen the performance of some stylesheets completely cripled by use of complex matches, e.g.,
<xsl:template match="m:apply[child::*[position()=1 and name()='factorof']]">
So its very specific to a processor/stylesheet pair and complex tests are better done in for-each/if blocks if performance is more important than maintainability.
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL: For-Each Efficient o, Kevin Jones | Thread | RE: [xsl] XSL: For-Each Efficient o, bryan |
RE: [xsl] disable-output-escaping, Benjamin Franz | Date | RE: [xsl] disable-output-escaping, Wendell Piez |
Month |