Solved

XslCompiledTransform performance very slow on first load.

Posted on 2007-04-10
3
921 Views
Last Modified: 2013-11-18
Hi There,

I'm having some issues with peformance of my application when it first loads. It seems to be taking at least 4 second to load the first time. Could someone help me with some code snippets to make it perform a little better please?

Thanks in advance

Sean
 

XPathDocument xDoc = new XPathDocument(xmlreader);
            string xslPath = Server.MapPath("test.xslt");
            XslCompiledTransform transform = new XslCompiledTransform();
            transform.Load(xslPath);
            transform.Transform(xDoc, null, Response.Output);
0
Comment
Question by:bullrout
[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
3 Comments
 
LVL 12

Expert Comment

by:jkmyoung
ID: 18883096
When you say first time, do you mean if you reload the xslt and transform again then the  time suddenly decreases? Then your load time may have more to do with included libraries; you could try reducing those.
0
 
LVL 5

Author Comment

by:bullrout
ID: 18885414
yes that's correct. But I have read that the XslCompiledTransform class is a compiler and that on first load it compiles the stylesheet where as the XslTransform class is an interpreter but that class is deprecated in .net 2.0. So you think that limiting the namespaces I have in the page will have an effect?

I will give it a try, is there anyother ideas? I'm looking for the fastest way.
0
 
LVL 11

Accepted Solution

by:
Vivek Thangaswamy earned 500 total points
ID: 18953569
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP Soap Server returning XML but < & > as &lt; / &gt; 9 82
Change to file doesn't show up 16 77
asp web application 3 42
ASP.NET data base connection 35 38
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

749 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