Hi,

I've recently installed Xalan 2.2 and have found that transformations appear
much slower than with 2.1.  I have an xml file of 695 lines that I transform
using a moderately complex xsl file of 60+ lines.  Using Xalan-J 2.1, the
transformation averages about 400 msec.  With Xalan-J 2.2, the
transformation takes more than 4 seconds (i.e., 10+ times as long).  On very
small files, the difference is much less noticeable so the file size is
probably a factor.  

I'm running the same code in both cases but have modified the classpath to
replace xalan.jar (2.1) with xml-apis.jar and xalan.jar (2.2).  In both
cases, I'm using Xerces 1.4.4.

Here's the code on which I'm running the timing tests.

TransformerFactory transFactory = TransformerFactory.newInstance();
Transformer transformer = transFactory.newTransformer(new
StreamSource(xslFile));
transformer.transform(new StreamSource(xmlFile), new
StreamResult(System.out));

Is 2.2 much slower than 2.1 for transformations or am I missing something
here?


Reply via email to