Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 23rd, 2015, 05:58 AM
Authorized User
 
Join Date: Nov 2007
Posts: 31
Thanks: 6
Thanked 0 Times in 0 Posts
Default XSLT Include - Effects on Performance

Hi,
Bit of a general question about xsl:include.

We have a solution that transforms thousands of XML messages every hour.
Currently none of the stylesheets use the include functionality, each stylesheet just works on it's own.

I am looking at using shared stylesheets to cut down on code duplication, through the use of xsl:include. To be specific, every single transform action will use two xsl:include instances.

For a solution that does so many transforms, what sort of performance changes would I expect to see?
This is assuming that each XML message is the same size - roughly 10kb each for the inputs and outputs.

I appreciate that I haven't provided details of server capabilities, software, etc, but I'm just after a rough indication of the change in performance - is it a significant impact to use include?

Thanks in advance,
__________________
Neil Belch
Technical Officer
CDL

The views opinions and judgements expressed in this message are solely those of the author. The message contents have not been reviewed or approved by CDL.
 
Old April 23rd, 2015, 06:26 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

The answer to performance questions always depends on which XSLT processor you are using.

However, I would expect that any costs incurred by xsl:include occur entirely at stylesheet compile time, and not at stylesheet execution time. It is of course vital if you are applying the same transformation thousands of times per hour that you only compile it once at "start of day".
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
The Following User Says Thank You to mhkay For This Useful Post:
Belch (April 23rd, 2015)
 
Old April 23rd, 2015, 08:31 AM
Authorized User
 
Join Date: Nov 2007
Posts: 31
Thanks: 6
Thanked 0 Times in 0 Posts
Default

The processor is Saxon-B 8.9 to be precise, and it's compiled only when the solution itself is reloaded (so not at every call).
Sounds like there is little issue to using includes - thanks for the response.
__________________
Neil Belch
Technical Officer
CDL

The views opinions and judgements expressed in this message are solely those of the author. The message contents have not been reviewed or approved by CDL.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Refer variables from XSLT Include or Import chilly XSLT 1 July 26th, 2010 09:56 AM
Performance tips for XSLT 2.0 stolte XSLT 5 February 26th, 2010 01:47 PM
Performance issue in using XSLT Prabeen XSLT 4 July 9th, 2009 10:57 AM
XSLT - XML Transformation Performance fishstix XSLT 5 April 13th, 2009 01:48 PM
Trigger effects melvik SQL Server 2000 3 January 16th, 2007 01:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.