Solved

How can I speed up XSLT?

Posted on 2004-04-13
2
230 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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

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, …
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

726 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