Re: [xsl] how to estimate speed of a transformation

Subject: Re: [xsl] how to estimate speed of a transformation
From: Daniel Veillard <daniel@xxxxxxxxxxxx>
Date: Thu, 11 Dec 2003 13:24:52 +0100
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 Veillard      | libxml Gnome XML XSLT toolkit
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine | 

 XSL-List info and archive:

Current Thread