Michael, Thanks for explanation.
You are right. I was comparing the cpu utilization time of my tests between Java1.5 and xalan-2.7.1. I did not know the fact that that standard Java 1.5 uses xslt compjailer instead of interpreter. In order to use, xalan 2.7.1 xslt compiler, what should I exactly do ? I am doing following - copied all the xalan 2.7.1 in the endorsed directory under lib . - use -Djava.endorsed.dir=/opt/java1.5/jre/lib/endorsed - Djavax.xml.transformoFactory=org.apache.xalan.xsltc.trax.TransformerFactoryImpl But it does not help in better CPU utilization. Is there any other way I should set system properties ? Thanks Ajay --- On Sat, 11/1/08, Michael Glavassevich <[EMAIL PROTECTED]> wrote: > From: Michael Glavassevich <[EMAIL PROTECTED]> > Subject: Re: xalan 2.7.1 performance issues > To: [email protected] > Cc: [EMAIL PROTECTED] > Date: Saturday, November 1, 2008, 9:57 AM > Xalan has two XSLT processors: an interpreter and a compiler > called XSLTC. > The default processor is the interpreter. I believe XSLTC > produces much > faster runtime code. Sun only ships XSLTC [1] so that is > what you get by > default from Sun Java 5. Wouldn't be surprised if the > comparison was > Xalan-J 2.7.1 interpreter vs. Java 5 XSLTC. If that's > what was done try > switching to Xalan-J 2.7.1 XSLTC. > > Thanks. > > [1] http://java.sun.com/j2se/1.5.0 > /docs/guide/xml/jaxp/ReleaseNotes_150.html#xsltc > > Michael Glavassevich > XML Parser Development > IBM Toronto Lab > E-mail: [EMAIL PROTECTED] > E-mail: [EMAIL PROTECTED] > > "Mukul Gandhi" <[EMAIL PROTECTED]> > wrote on 11/01/2008 12:10:39 AM: > > > On Sat, Nov 1, 2008 at 2:20 AM, ajay bhadauria > <[EMAIL PROTECTED]> > wrote: > > > Why xalan 2.7.1 takes more cpu than standard java > 1.5. inbuild > > with xalan-2.6.0 version ? > > > > I don't generally consider CPU utilization as a > measure of performance > > (it's an important aspect, though). It's > normally beyond programmer's > > control. I usually try to optimize memory usage, and > run time. It > > would be nice, if you can share the run time > comparison. > > > > > What should I do so that I can get the same > performace with > > xalan-2.7.1 as I am getting with Standard java 1.5 ? > > > > First please share the performance numbers of Xalan-J > 2.7.1 vs. JDK > > Xalan. The performance data could vary from one > XML/XSL to another. > > > > Also, is using Xalan-J 2.7.1 important to you, or the > performance? Is > > performance affecting you very badly? Xalan-J 2.7.1 > has lot of > > improvements (bug fixes, etc.) as compared to the > Xalan bundled with > > JDK. > > > > > > -- > > Regards, > > Mukul Gandhi
