Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] XSLT 1 vs. 2 stylesheet performance issues

From: "Ilya Sterin" <sterini@--------->
To:
Date: 8/4/2008 5:24:00 PM
So here is the result of a time profile...  This shows a 40X + time difference.

$ time java -jar saxonb9-1-0-1j/saxon9.jar -s:test002-meta-1_3.xml
-xsl:ODMToClassConfig.xsl -o:out2.xml
Warning: at xsl:stylesheet on line 11 column 68 of ODMToClassConfig.xsl:
 Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor

real    0m2.189s
user    0m1.954s
sys     0m0.146s

#### Saxon 6 (XSLT 1.0) #####
$ time java -jar saxon6-5-5/saxon.jar -o out1.xml test002-meta-1_3.xml
ODMToClassConfig.xsl

real    1m36.175s
user    1m32.081s
sys     0m1.888s


Ilya


On Wed, Jul 30, 2008 at 5:39 PM, Michael Kay <mike@xxxxxxxxxxxx> wrote:
>> I'm a bit stumped by the performance issues we're having.  We
>> have an xslt 1 compliant stylesheet that takes 10 minutes to
>> run in xslt 1 processors (Saxon, Xalan, libxslt) and a few
>> seconds in Saxon 9B.  I'm not sure what it can possibly be.
>
> Well, it's certainly not related to the fact that it's an XSLT 2.0
> processor. There is absolutely no intrinsic reasons why an XSLT 2.0
> processor should be faster at processing a 1.0 stylesheet than a 1.0
> processor. It's more likely that development on most 1.0 processors came to
> a bit of a standstill about 5 years ago.
>>
>> The processor seems to take most of the time in starting the
>> transformation.  Using oxygen, the debugger says Starting
>> transformation and stays there for about 10 minutes before
>> transforming in a matter of seconds.
>
> Sounds to me as if you're short of memory. The startup phase will be
> building the document tree in memory, and will thrash the paging file if
> there isn't enough memory to hold it. Check the paging activity, allocate
> more memory if you can. How big is the source document?
>
> Though there aren't any significant changes in the TinyTree structure
> between Saxon 6.x and 9.x that would account for such a difference during
> tree building. What is the -t output from Saxon 6.x and from Saxon 9.x?
>
> 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