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]
Other format: [Raw text]

RE: processing improvements questions regarding document, parameters


> - document() calls should be placed within a global param,
> after some code
> forensics of most of the major processors, and some rather
> seat of the pants
> benchmarking, this say overall better general performance

> the proc doesnt
> have to instantiate another tree representation in memory of the doc
> ! )

It's certainly good practice to put a document() call in a global variable ,
because it makes it stand out clearly; but repeated calls to document()
using the same URL are very unlikely to result in multiple trees being
built, because the processor is obliged to ensure that two calls with the
same URL return the same root node. The only overhead is in looking up the
URL in the internal pool.

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com


 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]