Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSL Transformation Speed

 
Paul Morano
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am doing an XSL transformation from XML->XML and find it is very slow. Granted, I do have a very large <xsl:for-each> section that can produce varying sizes depending on the input XML.
Is there some way I can speed up XSL transformations? Maybe some guidelines to follow?
I have tried the following but with little speed improvements:
Using a Templates Object.
Limiting use of // (descendant axes)
Optimizing Variable Creation (e.g. <xsl:variable name="fooElem" select = "foo" />
Any suggestions are appreciated.
Thanks.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which toolkit are you using? I understand there are vast differences in speed for various types of problem. Here is a benchmark I found, rather out of date.
Bill
 
Tony Yan
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post your xsl?
Another thing, if you have a lot of wild cards (*) or testing (test="a='xyz'"), things can be slowed down dramatically.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic