Subject: Re: [xsl] measuring performance of XSLT stylesheet From: Florent Georges <lists@xxxxxxxxxxxx> Date: Tue, 17 Nov 2009 17:50:33 +0000 (GMT) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] measuring performance of , a kusa | Thread | Re: [xsl] measuring performance of , a kusa |
Re: [xsl] multiple elements to use , Hoskins, Dorothy [OC | Date | [xsl] instance a template from xsl:, Andreas Peter |
Month |