This particular one sounds like an anomaly? I am currently very deep in
some performance tuning (redundent expression eliminations, absolute
expression reduction, serialization improvement, some [failed] experments
with recursive evaluation flattening). If you feel like passing me the
specific transform, I can give it a try and see what I discover.
-scott
"Gauthier, Jerry"
<[EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
tream.com> cc: (bcc: Scott
Boag/Cambridge/IBM)
Subject: Xalan 2.2 transforms
much slower than 2.1
02/12/2002 10:30
AM
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?