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

social said:

I truly appreciate this blog article.Really looking forward to read more. Really Cool.

# May 8, 2012 10:25 AM

seo said:

B34Rsf Say, you got a nice post.Much thanks again. Really Great.

# May 11, 2012 2:57 PM

cheap seo services said:

Er4yAp Thanks a lot for the blog article. Really Cool.

# September 19, 2012 9:43 AM

bookmarking submission said:

TaZxSW I really enjoy the article post.Thanks Again. Really Great.

# September 19, 2012 6:21 PM

http://www.crazyraid.com said:

Definitely, what a great website and informative posts, I definitely will bookmark your site.All the Best!

# October 13, 2012 3:45 AM

bookmarking service said:

IFEEbe This is one awesome blog post.

# October 19, 2012 11:48 PM

Thomson said:

Hi there, i read your blog occasionally and i own a similar one and i

was just curious if you get a lot of spam responses?

If so how do you reduce it, any plugin or anything you can advise?

I get so much lately it's driving me mad so any help is very much appreciated.

# March 16, 2013 1:41 PM

Orosco said:

Pretty nice post. I just stumbled upon your blog and wished to say that I've really enjoyed browsing your blog posts. After all I will be subscribing to your rss feed and I hope you write again soon!

# April 24, 2013 11:42 PM

Poe said:

Wow! After all I got a weblog from where I can really obtain valuable information regarding my study and knowledge.

# April 26, 2013 7:03 AM

Messenger said:

You really make it seem so easy along with your presentation however I to find this topic to be really one thing that

I think I might by no means understand. It sort of feels too complicated and extremely huge

for me. I'm taking a look ahead to your next publish, I will attempt to get the dangle of it!

# April 28, 2013 5:29 PM

Cavazos said:

You really make it seem so easy with your presentation but

I find this topic to be really something which I think I would never understand.

It seems too complex and very broad for me. I'm looking forward for your next post, I will try to get the hang of it!

# April 29, 2013 12:38 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)