This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: processing improvements questions regarding document, parameters
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 17 Apr 2002 10:44:17 +0100
- Subject: RE: [xsl] processing improvements questions regarding document, parameters
- Reply-to: xsl-list at lists dot mulberrytech dot com
> - 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