xsl-list
[Top] [All Lists]

Re: [xsl] measuring performance of XSLT stylesheet

2009-11-17 12:51:02
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/


























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