Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] speed difference between IE and Firefox during transform?

From: Sean Whalen <seanwhalen@----------->
To:
Date: 3/1/2005 6:43:00 PM
Hi,

   I've been playing with XSLT, and as a practice exercise I am putting 
together an all-xslt version of the game Minesweeper.  It is basically 
90% done at this point.  I've noticed a big difference in the transform 
speed of one of the stylesheets I'm using. 



   I'm writing the list to find out if that is to-be-expected or if 
that is strange.  The game has some other UI issues, but I'm writing 
here just to ask about the difference in speed between the two browsers.



   The stylesheet, at the point of the slowness, has 2 node-set 
variables, and it is building a 3rd variable by selecting all the 
members of the first set that have an attribute that is found in some 
member of the second set.  That block of code looks a little like this:



<xsl:variable name = "revealing" select = "$field[

       @isBomb != -1  and @isRevealed = 0 and

     ((concat(@h -1  ,'/', @v   ) = $zeros/@sqID)    
   or (concat(@h  +1  ,'/', @v ) = $zeros/@sqID)

   )] " />



   In that code, the "$field" contains the unexposed squares, and the 
"$zeros" are the revealed squares that are being used to search for more 
revealable squares.  This can take a second or two when this runs in IE, 
but can take up to ten seconds in Firefox. 



   Is that just the way it is?



this is the main page for the app (index.html)
http://seanwhalen.home.comcast.net/sweeperscript/

and this is the stylesheet with the strange slowness in Firefox:
http://seanwhalen.home.comcast.net/sweeperscript/RevealBombs.xsl

Thanks for any feedback.
Sean


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent