[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Performance tuning rules of thumb


Subject: [xsl] Performance tuning rules of thumb
From: "Kienle, Steven C" <steven.c.kienle@xxxxxxxxxx>
Date: Thu, 28 Oct 2004 11:03:19 -0400

Just out of curiosity, I have seen many times rules of thumb of how to tune
a stylesheet, similar to below.  Is there any site which has collected these
rules in one place?

-----Original Message-----
From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
Sent: Thursday, October 28, 2004 10:59 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx; kjones@xxxxxxxxxxx
Subject: RE: [xsl] Performance degraded with grouping and sorting.


It's always worth trying it on a different processor. Sometimes there can be
considerable differences, and sometimes a particular construct will perform
badly on one processor and well on another. Sometimes Saxon runs ten times
faster than Xalan - but by no means always.

Also try running your stylesheet with different volumes of data and seeing
how the performance scales. You need to look out for anything that's causing
quadratic performance (double the size, four times the time) - often caused
by constructs such as //x within a loop, or preceding::x.

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


LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.


Current Thread