Menu

#16 performance improvements

open-accepted
Kai K.
XSLT (28)
9
2007-02-28
2007-02-23
No

We got following tips on the saxon-help mailing list:
- use keys in filter expresions
- use tokenize() instead of str:split
- use functions tnstead of templates
- use atomic values instead of tree fragments
- use if() instead of xsl:choose
- use 'is' instead of = to compare trees/nodes
- declare types in function APIs
- use xsl:sequence instead of xsl:value-of

Discussion

  • Kai K.

    Kai K. - 2007-02-26
    • labels: --> XSLT
    • priority: 5 --> 9
    • status: open --> open-accepted
     
  • Kai K.

    Kai K. - 2007-02-26

    Logged In: YES
    user_id=1048110
    Originator: NO

    Added <xsl:strip-space>, now the transformations are 3 times faster. Exchanged <xsl:value-of> where no value value should be returned by a template or function.

     
  • Kai K.

    Kai K. - 2007-02-28
    • assigned_to: nobody --> yavin02
     

Log in to post a comment.

MongoDB Logo MongoDB