This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Question of performance


Ragulf Pickaxe wrote:


> I have a fairly large (41 KB) xsl document that is of course used for 
> processing xml documents.
> 
> In this document I (usualy) declare the variables in the scope that I 
> use them. Now it is found that I need a complex variable some 3-4 
> different places in this document.
> 
> My question is this: For best performance, is it best declare this 
> variable as a global one, allocating memory for it for the whole 
> duration or is it best to declare it where it must be used each and 
> every time thereby having to process the declaration 4 times in a document?

I think regard of unchangeable nature of xslt variables it's much more 
efficient create 1 global variable once rather than create it many times 
everywhere you need its value.

-- 
Oleg Tkachenko
Multiconn International, Israel


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]