Subject: Re: [xsl] Is this node, the document root... best test? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 20 Oct 2003 13:17:38 -0400 |
I'm not sure what's holding up my posts (I see responses before I see my post ;-) but,
I thought I'd post my findings on a quick n dirty test...
testing every node in an xml document,... ...start timer 1, ...30 times <xsl:if test=". = /"><!-- just time test --></xsl:if> ...stop timer 1,
...start timer 2, ...30 times <xsl:if test="not(parent::*)"><!-- just time test --></xsl:if> ...stop timer 2,
compare timers...
I found that the first test (timer 1), was routinely 10-30ms faster than the second.
Note:
- my test nodes were between 0-7 levels deep, 500-1,000 nodes in total...
- obvious gc / memory cleanup results were omited
- timer execution times are included, but pressumed minimal, and relatively average.
<hey> <this> <is>nuts</is> </this> </hey>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Is this node, the documen, Stephen Cunliffe | Thread | Re: [xsl] Is this node, the documen, Wendell Piez |
[xsl] Grouping Problem, puja thakral | Date | [xsl] Apply Templates question, Bennett |
Month |