Solved

How can I speed up XSLT?

Posted on 2004-04-13
2
229 Views
Last Modified: 2010-05-18
I like to use XSLT whenever possible due to its cross-platform capabilities, but one reason I can't use it for some processes is that it is slow, especially with multiple users.

Is there  a "best practices" guideline, or anything else along those lines, that could help me speed up my XSLT-powered functions?

Thanks!
0
Comment
Question by:Inward_Spiral
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 26

Accepted Solution

by:
rdcpro earned 50 total points
ID: 10816660
You bet.  Well, of course the biggest improvement is to write efficient XSLT code.  You'd be surprised how much variation in speed you get with different approaches.  Remember much of your XSLT is recursive, so a small improvement in one spot is likely to make significant gains in production.

To handle multiple users is easy, at least on Microsoft.  I'm not too familiar with the issues for other parsers, but I have a short explanation on how to use free-threaded pre-compiled XSLT on the Microsoft platform:

http://rdcpro.com/Members/rdcpro/snippets/cachingtemplates/

The thing to remember is that a cached XSLT needs to be stateless, and if you don't use the freethreaded version, you'll get all sorts of blocking problems.

Regards,
Mike Sharp
0
 

Author Comment

by:Inward_Spiral
ID: 10882347
Thanks much, I've been able to cut down on the performance a bit already, and I've still got quite a lot of code to go.

Along with your advice, I also found the freeware application "XSLT Majic" that allows for benchmarking of the XSLT's performance. I'd have to dig back through my bookmarks, but if anyone's interested, I'll post the address for the application.

 
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to use xmlReader and idatareader  ? 4 57
XML Data Missing in PHP SimpleXML 8 83
SQL XML ALL Nodes Compare in function 2 46
Macro to import XML in Access 2013 2 64
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question