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

[Fwd: Re: Optimizing XSLT iteration]

Subject: [Fwd: Re: Optimizing XSLT iteration]
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Mon, 08 Oct 2007 08:29:39 +0200
[Fwd: Re:  Optimizing XSLT iteration]
This got accidentally send to Sujata, here it is, again, to the list...(possibly out of date now, since the discussion has gone on)

-------- Original Message --------
Subject: 	Re:  Optimizing XSLT iteration
Date: 	Mon, 08 Oct 2007 03:48:12 +0200
From: 	Abel Braaksma <abel.online@xxxxxxxxx>
To: 	Sujata Gohad <sgohad@xxxxxxx>



Sujata Gohad wrote:
What is your expectation wrt to the time Saxon takes to transform
given the XSLT attached?

I've looked a bit at your source and I am a bit worried about its maintainability, but that's not your major point here (there are large xsl:when's that can be removed, and there are nested xsl:for-each that serve no special purpose and can be replaced by matching templates/apply-template pairs).


But my main point is the performance: it took my computer, while still doing the math thing on the background and a dozen other things, about 5 minute 43 seconds to run against your augmented (up to 68MB) source code (after I removed 5 obvious errors). That is still about 5 times faster than your measurements and your system is faster (on paper) than mine.

In lieu of this, I assume to be able to optimize your stylesheet to run in about 20 to 30 seconds with about 80MB, based on my earlier timings. But I wonder why there is so much difference between my timing and yours.

I use Saxon B 8.9.0.4 for Java. I ran it with the following command:

saxon -s sample.xml hvm_to_svg.xsl > out.xml

Do you perhaps run it from within an IDE? This may add a lot of extra timing to interpreting and showing the result document (I use Eclipse, running it within Eclipse is much-much-much slower with large documents).

Cheers,
-- Abel Braaksma

PS: it is now about 3.45 AM up here, time to call it a day ;)

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.