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

Reply via email to