Memi.Reflection

Private members of memi's thoughts

XSL Transform performance

I came across few posts regarding the performance of XSL transformation in .NET 1.x, but only yesterday I came across a situation which made that quite clear.

We had an XML file of 1.2MB size, and a quite complicated XSL file (based on WordsheetML) to transform it.

Using the XslTransform object, it took about 10 secs.

Using MSXML4, including all the interop overhead, it took less than a second.

Is that reasonable? Are those the performance I should expect in the following scenarions? Did anybody find a good solution to this problem?

Comments

Oleg Tkachenko said:

Usual advices:
1. Use XPathDocument
2. Upgrade to latest .NET SP
3. Optimize your stylesheet - get rid of //, use keys etc.

And beware than using MSXML in .NET isn't supported by Microsoft.
# December 22, 2004 5:34 AM

Teemu Keiski said:

Check this out:

Improving .NET Application Performance and Scalability - Improving XML Performance
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/ScaleNetChapt09.asp

See the section "XSLT Processing". It includes more dicussion about things Oleg already mentioned but also a few others to consider.
# December 22, 2004 9:47 AM

Jon Galloway said:

Glad you asked this question - I've been wondering the same thing. Interesting performance comparison article here:
http://www.ondotnet.com/pub/a/dotnet/2003/07/14/xsltperf.html

I think I'll stay with .NET and look at what Oleg and Teemu suggested.
# December 22, 2004 7:41 PM

Ralph Lauren outlet said:

This has made my entire freaking year. Seriously.

# July 18, 2011 5:07 AM

cheap louis vuitton bags said:

Very valuable information, I am very grateful.

# July 20, 2011 5:47 AM

cheap gucci bags said:

you mean you don’t need a special tool? That’s refreshing! Thanks!

# July 21, 2011 10:50 PM

Louis Vuitton bags oulet said:

I just read through the full article of yours and it was quite good. nice information!First place in google results&Thank you.

# July 23, 2011 4:31 AM

buy nike air max said:

Today well lived makes every yesterday a dream of happiness and every tomorrow a vision of hope. Look well therefore to this day.<a href="www.buynike-airmax.com/" title="buy nike air max">buy nike air max</a>

# July 30, 2011 4:08 AM

mens leather belts said:

Youve got style, class, bravado.  I mean it.  Please keep it up because without the internet is definitely lacking in intelligence.<a href="www.mens-leatherbelts.com/" title="mens leather belts">mens leather belts</a>

# July 31, 2011 11:05 PM

Timberland boots outlet said:

You made fantastic nice points here. I performed a search on the issue and discovered almost all peoples will agree with your blog.<a href="www.cheap-timberlandbootsoutlet.com/" title="Timberland boots outlet">Timberland boots outlet</a>

# August 9, 2011 11:42 PM

cheap prada handbags said:

Easily, the post is in reality the sweetest on this deserving topic. I concur with your conclusions and will eagerly look forward to your approaching updates.<a href="www.cheappradahandbagsonline.com/" title="cheap prada handbags">cheap prada handbags</a>

# August 10, 2011 10:44 PM

Nike Shox cheap said:

This website has got lots of extremely helpful info on it. Thanks for helping me.<a href="www.nikeshoxcheapsale.com/" title="Nike Shox cheap">Nike Shox cheap</a>

# August 11, 2011 11:48 PM

Louis Vuitton bags oulet said:

One of the most useful websites I have found during my research, thanks a lot!<a href="www.cheaperlouisvuittonbagsoutlet.com/" title="Louis Vuitton bags oulet">Louis Vuitton bags oulet</a>

# August 15, 2011 2:37 AM

Ralph Lauren outlet said:

Iam glad l came across this post, very educating. I will subscribe to your rss for future update.<a href="www.ralph-laurenoutletonline.com/" title="Ralph Lauren outlet">Ralph Lauren outlet</a>

# August 16, 2011 5:21 AM

mens leather belts said:

Excellent post ! You make some brilliant points very nice realization. keep it up!<a href="www.mens-leatherbelts.com/" title="mens leather belts">mens leather belts</a>

# August 18, 2011 11:57 PM

buy nike air max said:

I loved reading this article  I will be sure to tell my friends about this and link to it as well. Thanks!<a href="www.buynike-airmax.com/" title="buy nike air max">buy nike air max</a>

# August 19, 2011 9:06 PM

rtyecript said:

I really liked the article, and the very cool blog

# August 24, 2011 6:58 AM

cheap prada handbags said:

I am glad to found such useful post. I really increased my knowledge after read your post which will be beneficial for me.

# August 29, 2011 10:50 PM

OEM software download said:

KYMN2J Cool:) I would say say it exploded my brain..!

# September 24, 2011 9:06 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)