Li Liang wrote:

> Thansk for the reply, scott.
>
> Hopefully 2.2.0 will solve this problem. I still don't understand why
> there's such a big performance difference between command-line and
> Tomcat? BTW, I tried XT executable on NT from command line, it only took
> 3 seconds!

Hi,

I had a performance problem which was like this, in that some code running
as an application was dozens of times faster that the same code running as a
servlet. Eventually I was able to track the difference down. It turned out
that the problem code was using Class.forName() and Class.newInstance() a
lot, and that because the servlet engine has to be able to reload classes,
these methods are much more complicated, and therefore much slower,  in that
environment.

It's just a guess, but Xalan does use these methods a lot too, and that
might be related to your problem.

Jeff

Reply via email to