[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: more on XSLT processor performance

Subject: RE: more on XSLT processor performance
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 2 Aug 2000 11:47:51 +0100
saxon memory
> My experience is that Saxon uses a factor of 10 in memory for 
> representing the XML-file, which would mean that you would 
> definitively use at least a machine with 512 Mb RAM for doing 
> the above processing.

Yes. the actual factor depends very much on the XML complexity. The critical
thing is the size of element nodes. The Java VM uses (I believe) 24-30 bytes
per object before you even start putting any user data in. One approach
(like Xalan DTM) is to abandon implementing nodes as Java objects.
> 
> Since XT only uses half of that (reason unknown) would it be 
> unreasonable to expect that the Saxon memory footprint could 
> be reduced by careful analysis, and checking a lot for null 
> references?

The first cut of that was done in Saxon 5.3 and made big improvements.
Getting more savings (without a radical rethink such as DTM) will involve
diminishing returns, and risk upsetting the space vs. time tradeoff.

I think xt's tree is done using chains whereas Saxon uses pointer arrays,
but I don't think that can be the sole reason for the difference in memory
usage, unless Java is allocating the arrays very inefficiently. I'm more
inclined to think that it's the dynamic memory usage that's different, not
the memory used for the tree itself.
> 
> A pet peeve of mine would be that it might - in certain cases 
> - be possible to apply XLST in streaming mode where only the 
> necessary part of the tree is present in memory at any given 
> point.  This would require quite some analysis of the XSLT 
> program though.

Yes. There's masses of scope for good research projects in this area.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.