Subject: RE: [xsl] Optimizing XSLT iteration From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Mon, 8 Oct 2007 03:02:38 +0100 |
Thanks for sending your sample data (offlist). I've fixed various errors in your source file to make it well-formed. Running the transformation 100 times in Saxon I get *** Average execution time over 100 runs: 26ms which seems entirely reasonable. It's dangerous to scale up from something quite so small, but 38Kb in 26ms scales up to 76Mb in 52s if the performance is linear, and I can't really see why it shouldn't be. The processing in this stylesheet is a bit more complex than the previously posted sample (includes string-to-number conversion and arithmetic) but it looks linear. Michael Kay http://www.saxonica.com > -----Original Message----- > From: Michael Kay [mailto:mike@xxxxxxxxxxxx] > Sent: 08 October 2007 01:49 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: [xsl] Optimizing XSLT iteration > > > I just tried Saxon parser after increasing the initial/max > Java heap > > space to 512M and it worked with even a 74MB file, but took > about 28 > > minutes to finish. > > That does seem quite high, given that Saxon can do an > identity transform on a file of that size in something close > to 28 seconds. I wonder if there is some other problem in > your code (are there parts you haven't shown us?). Is the > performance linear with document size? > > Michael Kay > http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Optimizing XSLT iteration, Michael Kay | Thread | RE: [xsl] Optimizing XSLT iteration, Michael Kay |
Re: [xsl] Optimizing XSLT iteration, Abel Braaksma | Date | RE: [xsl] Optimizing XSLT iteration, Michael Kay |
Month |