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

Re: xslt processors

Subject: Re: xslt processors
From: Dusan Zatkovsky <zatkovsky@xxxxxxxxxxxx>
Date: Fri, 8 Oct 2004 18:56:08 +0200
big cyc download
On Friday 08 of October 2004 18:41, Werner, Wolfgang wrote:
> Perhaps you can tune you xsl once you know where the bottleneck is.
>

Bottleneck is simply select to some big element. I can't tune it. I 
have reduced my code to simple cycle for-each over big xml trees and 
selecting some simple data from it. It was slow.

Example
<data>
	<cyc>
		<id>1</id>
		<services>
			<service>
			...
			</service>
			<!-- many and many times again -->
		</services>
	</cyc>
</data>


<xslo:for-each select="data/cyc">
	<xslo:call-template name="templateDoingManyOperationsOverData">
		<xslo:with-param name="param1" select="."/>
	</xslo:call-template>
</xslo:for-each>


<xslo:template name="templateDoingMany....">
	<xslo:param name="param1"/>

	<xslo:value-of select="$param1"/>

	<!--
		Other lines of code (about 3000), which are disabled in comment.
	-->
</xslo:template>

And speed was very slow because <cyc> tree is very big. I have try to 
tell template only index (position) of current <cyc> from main 
template, but speed was slower in currently disabled code when 
referring to /data/cyc[position()=$index]/id many times instead of 
exsl:node-set($param1)/id

-- 


S pozdravom,
Dusan Zatkovsky

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