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

RE: [xslt performance for big xml files]

Subject: RE: [xslt performance for big xml files]
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 26 Apr 2009 21:43:34 +0100
RE:  [xslt performance for big xml files]
> 1> On splitting my 30 MB to 60 splits, I was able to get a massive
> speed up. Overall transformation happening under 3 min.
> 2> Did some code level optimization (standard ones, avoiding non
> essential computations.). Got a massive improvement here too. 
> Tried to avoid call-templates where ever possible. Replaced 
> my loops with apply-templates. eliminated usage of // totally.


I think there's a flaw in the logic here. Your problem is not one of
insufficient memory, so you don't need to split the file for memory reasons.
The fact that it is possible to do the transformation "one subtree at a
time", proves that the logic is essentially linear, and it should therefore
be possible to do it in linear time without splitting the file into
subtrees. You don't need to do the splitting, you only need to fix the part
of your code that is making the performance non-linear.

Michael Kay
http://www.saxonica.com/

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-2007 All Rights Reserved.