xsl-list
[Top] [All Lists]

Re: [xsl] comments take time? XSLT 1.0

2013-10-14 12:48:21
Dave,

One can find the xsltc.exe utility as part of installed VS 2008 (and I
hope in later versions, too) at: C:\Program Files\Microsoft
SDKs\Windows\v6.0A\bin\xsltc.exe

Here is a link to the documentation:
http://msdn.microsoft.com/en-us/library/bb399405.aspx

Cheers,
Dimitre

On Mon, Oct 14, 2013 at 10:35 AM, davep <davep(_at_)dpawson(_dot_)co(_dot_)uk> 
wrote:
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




-- 
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all
------------------------------------
Quality means doing it right when no one is looking.
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play
-------------------------------------
Facts do not cease to exist because they are ignored.
-------------------------------------
Typing monkeys will write all Shakespeare's works in 200yrs.Will they
write all patents, too? :)
-------------------------------------
I finally figured out the only reason to be alive is to enjoy it.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>