Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Why is Intel XSLT accelerator so slow ?

From: Juergen Kahrs <Juergen.KahrsDELETETHIS@------.-->
To: NULL
Date: 5/2/2008 11:50:00 AM

killy971 wrote:

> By repeating this pattern, I made test files with different file
> sizes, from 1MB to 200MB, and tested the XSL transformation process
> (with an XSL file transforming the XML file to an HTML file) with the
> two libraries.

Interesting, be aware that file sizes of 200 MB are
usually too large to be processes with XSLT. It will
work in principle, but should be done offline because
it simply takes too long for interactive use.

> For little XML files (under 4MB), Intel XSLT accelerator performances
> were better than Xalan performances, but for bigger files, XSLT
> accelerator starts to be _very_ slow (exponential growth of the
> processing time).
> 
> An extract of the result of my benchmark :
> 
> 10MB XML file
> - Xalan : 4.5 seconds (processing time)
> - XSLT accelerator : 19.4 seconds
> 
> 30MB XML file
> - Xalan : 11.4 seconds
> - XSLT accelerator : 191.2 seconds
> 
> 50MB XML file
> - Xalan : 18.4 seconds
> - XSLT accelerator : 548.4 seconds (~30 times slower !)

Congratulations for your systematic analysis.
You have already found the problem:

  Xalan run-time increases as O(n), this means roughly 5-fold run-time for 5-fold size.
  XSLT accelerator run-time increases as O(n^2), this means roughly 25-fold run-time for 5-fold size.


This problem wont be solved by "optimization" in the usual sense.
The algorithm has to be changed.


transparent
Print
Mail
Digg
delicious
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