Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: "Michael Kay" <mike@------------>
To:
Date: 11/3/2008 12:52:00 PM
> 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.

Profiling is useful, but it also has considerable limitations. The more
powerful the optimizer, the harder it is to relate what happens at run-time
to your original source code.

Hence the rhetorical question in the paper: "...but why is a simple <hr/> a
hotspot?" (Answer could be, for example, because it often fills a buffer in
the serializer causing the serializer to process the buffer contents)

Incidentally, one minor comment

>Only xsltproc provides a command-line switch for running the transformation
time multiple times 

Saxon has had such a switch for some time, though only recent releases have
documented it (-repeat:99).

I think there's another important (if obvious) point that's not made in the
paper: don't assume that your performance problem is in the XSLT code until
you've drilled down to that level. I did a bit of tuning for a client
recently where it turned out 80% of the cost was spent in some simple
user-written code to generate the XML input for the transformation.

Michael Kay
http://www.saxonica.com/


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