xsl-list
[Top] [All Lists]

Performance tuning rules of thumb

2004-10-28 08:03:19
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(_at_)saxonica(_dot_)com]
Sent: Thursday, October 28, 2004 10:59 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com; 
kjones(_at_)sarvega(_dot_)com
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.


<Prev in Thread] Current Thread [Next in Thread>