Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] XPath "//", speed, and Saxon

From: Tony Graham <Tony.Graham@---------------------->
To:
Date: 11/3/2008 11:55:00 AM
On Fri, Oct 31 2008 14:27:48 +0000, huttarl@xxxxxxxxx wrote:
...
> Obviously the performance problem was elsewhere. But the question I
> wanted to ask here is, what does this imply regarding good practices for
> writing efficient stylesheets?

The truism is that if you are worried about efficiency, you need to test
using the processor that you are going to use in production and using
something like the real data.

This example from my tutorial about testing XSLT [1] shows the result of
profiling the same stylesheet and data in both xsltproc and Saxon: the
two XSLT processors agreed on which were the two most time-intensive
templates, but after that, their results differed.

And in this instance, using the Saxon timing switch and profiling
stylesheet as shown in the tutorial (and in the Saxon documentation [2])
will help you identify your hotspots.

Regards,


Tony Graham                         Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2


[1] http://www.menteithconsulting.com/wiki/XTech2007/MyStylesheetRunsBut#xsltproc
[2] http://www.saxonica.com/documentation/using-xsl/performanceanalysis.html


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent