[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Optimization using keys

Subject: Re: Optimization using keys
From: António Mota <amsmota@xxxxxxxxx>
Date: Thu, 17 Feb 2005 17:48:51 +0000
snode download
It does, in rough count it slows down from 2.4 to 1.8 seconds, on
FireFox. In IE it's a little faster...

I did some optimization in my JavaScript, so from yesterday to today
i've lower it from 3.7 to 1.8, wich is a half, not bad...

Thanks a lot.


On Thu, 17 Feb 2005 12:17:39 -0500, Wendell Piez
<wapiez@xxxxxxxxxxxxxxxx> wrote:
> Antonio,
> 
> At 12:17 PM 2/17/2005, you wrote:
> >So now i have
> >
> >(identity transform)
> >
> >   <xsl:template match="Menu">
> >                 <xsl:choose>
> >                         <xsl:when test="count($snode)=1 and
> > count(.|$snode)=1">
> >                                    (get the document() nodes and insert then
> >                         </xsl:when>
> >                         <xsl:otherwise>
> >                                 <xsl:copy>
> >                                         <xsl:apply-templates select="*"/>
> >                                 </xsl:copy>
> >                         </xsl:otherwise>
> >                 </xsl:choose>
> >         </xsl:template>
> >
> >but it seems to take too much time to do this, with 300+ Menu nodes.
> 
> It seems to me the test might be easier if you declared, instead of snode:
> 
>   <xsl:variable name="snode-id" select="generate-id((//Menu)[number($pos)])"/>
> 
> and then your node identity test could be
> 
> <xsl:when test="generate-id() = $snode-id">
>    (get the document() nodes ... )
> </xsl:when>
> 
> which would be faster, I bet.
> 
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.