RE: [xsl] processing improvements questions regarding document, parameters

Subject: RE: [xsl] processing improvements questions regarding document, parameters
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 17 Apr 2002 10:44:17 +0100
> - 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@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


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


Current Thread