Solved

How can I speed up XSLT?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
illegal characters in XML using UTF-8 8 37
XSL Grouping 7 38
To fetch data from XML with multiple root nodes 6 69
Converting BLOB to XMLTYPE 12 101
The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

920 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

12 Experts available now in Live!

Get 1:1 Help Now