XslCompiledTransform performance very slow on first load.
Posted on 2007-04-10
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
XPathDocument xDoc = new XPathDocument(xmlreader);
string xslPath = Server.MapPath("test.xslt");
XslCompiledTransform transform = new XslCompiledTransform();
transform.Transform(xDoc, null, Response.Output);