Re: [xsl] measuring performance of XSLT stylesheet

Subject: Re: [xsl] measuring performance of XSLT stylesheet
From: a kusa <akusa8@xxxxxxxxx>
Date: Sun, 22 Nov 2009 13:03:36 -0600
Thanks for your input. What little I know about using "//" is that the
processor checks a whole document when a "//element" is used. If we
are talking about a really big document (few mB) this would definitely
slow down the transformation processing time.

Right?

On Tue, Nov 17, 2009 at 11:50 AM, Florent Georges <lists@xxxxxxxxxxxx> wrote:
> a kusa wrote:
>
>  Hi,
>
>> Additionally, are there any particular tags that I must be
>> avoiding to improve performance?  I know using "//" is not
>> advisable.
>
>  This is an interesting one.  Actually, using //elem instead of
> /root/elem1/elem2/elem is more efficient on (at least one) XML
> database (out of any context, the semantics is not the same,
> right, but that's an advice I am used to hear, which is not always
> true.)
>
>  You can try to find out why, and you can argue that this is
> because of XQuery taking advantage of the indexing of the XML
> database, which is not available to the XSLT 2.0 processor in top
> of this XML database (but I bet this won't be true for a long
> time.)  But the point is that no such rule about efficiency is
> absolute, and as Mike said, only measurement in "real" situations
> can give you some clues about optimization opportunities.
>
>  Hope that helps.  Regards,
>
> --
> Florent Georges
> http://www.fgeorges.org/

Current Thread