?
Solved

How can I speed up XSLT?

Posted on 2004-04-13
2
Medium Priority
?
231 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 200 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

752 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