Re: [xsl] comments take time? XSLT 1.0

Subject: Re: [xsl] comments take time? XSLT 1.0
From: davep <davep@xxxxxxxxxxxxx>
Date: Mon, 14 Oct 2013 18:35:47 +0100
On 14/10/13 18:32, Dimitre Novatchev wrote:
An easy benchmark would be to add different number of comments
(incremented for each case by 100 or by 1000) to the identity
transform.

Then run each transformation on the same, of typical size XML document
(10 times for each case) and record the average timing.

Then, if the result varies more than 1% from the non-commented version
-- complain to the vendors.

More importantly, in the case of .NET, one can compile the
transformation into a dll -- using the xsltc.exe utility.

This guarantees exactly the same time, regardless of the
quantity/fraction of the comments in the serialized (initial textual)
transformation. It also runs a lot faster than the uncompiled version,
in case the same transformation must be run multiple times.

Cheers,
Dimitre

Thanks Dimitre. Nice and clear. It is a .net environment so your logic holds good.


Mike, the complaint is that there is a 'perceived' problem. I'm unsure if it's real or not.






regards


--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

Current Thread