Solved

How can I speed up XSLT?

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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. 
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

706 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now