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

Re: how to estimate speed of a transformation

Subject: Re: how to estimate speed of a transformation
From: Daniel Veillard <daniel@xxxxxxxxxxxx>
Date: Thu, 11 Dec 2003 13:24:52 +0100
daniel veillard
On Thu, Dec 11, 2003 at 11:28:22AM +0400, David Tolpin wrote:
> On the other hand, if a template contains a variable definition that does depend
> on template's parameters,
> 
> <xsl:template name="footer">
>   <xsl:variable name="doctitle" select="/book/descendant::title[1]"/>
> 
> the programmer should expect that the computation takes place only once.

  Well then that would be just wrong. It depends what document is in context.
And if the programmer used node-set() it's a dynamically generated document,
much like document() results. Do you think you would cache all the results
for such request ? well, if you do, your memory consumption may just explode.
Your vision of the actual tradeoff related to implementing an XSLT processor
seem to be rooted in theory, but doesn't seems to take into account a number
of problems associated. The variable in question could be associated to a 
10 MBytes memory tree.

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | 

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