Subject: Re: [xsl] comments take time? XSLT 1.0 From: davep <davep@xxxxxxxxxxxxx> Date: Mon, 14 Oct 2013 18:35:47 +0100 |
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.
-- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] comments take time? XSLT , Dimitre Novatchev | Thread | Re: [xsl] comments take time? XSLT , Dimitre Novatchev |
Re: [xsl] comments take time? XSLT , Dimitre Novatchev | Date | Re: [xsl] comments take time? XSLT , Dimitre Novatchev |
Month |