This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How do i optimize my stylesheet for speed?
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] How do i optimize my stylesheet for speed?
- From: "Eugene Kuznetsov" <eugene at datapower dot com>
- Date: Fri, 15 Jun 2001 10:58:33 -0400
- Cc: <wahmed001 at netscape dot net>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> CPU ultarsparc 248MHz, 384MB RAM, with 128MB of heap size it is taking
> about 10 min for a 5MB input file. However on a 4CPU (400MHz) box it
> is just taking a megre 42 sec. What can i do to make it faster on the
> slow machine?
Well, multiple CPU's are probably not the reason, if the machines are
not loaded otherwise. (I am assuming you are talking about running one
transform at a time, not multiple sessions concurrently). It is likely
there is some other difference, may be your compiler, java vm (if
you're using java), OS, etc. Which XSLT engine are you using?
In my book, of course, both 10 minutes and 42 seconds are quite
unacceptable, and you shouldn't have to spend time trying to optimize
it by hand. That's what optimizing compilers are for.
<plug>If you'd like it to run much better than either 10 minutes or
42 seconds, check out DataPower's XML acceleration solutions, from
DGXT (an optimized interpreter) to XSLJIT (a JIT compiler for XSLT)
to the XA35 (a network device for XML & XSLT acceleration).
http://www.datapower.com
Our goal is to remove any worries about XML scalability -- you
worry about the app, we worry about the speed.
</plug>
\\ Eugene Kuznetsov
\\ eugene@datapower.com
\\ DataPower Technology, Inc.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list