[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XPath "//", speed, and Saxon

Subject: Re: XPath "//", speed, and Saxon
From: Tony Graham <Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 03 Nov 2008 11:50:12 +0000
Re:  XPath "//"
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.