Geeks With Blogs

News Welcome to my blog, I hope to have here some interesting content for you all to read. However, I'm just starting out in this, so be patient with me.

Moshe Eshel The eye in the sky - just fell down

I encountered this post by Scott Hanselman (whom I of course read regularly), and was mentioned in his after-post - WoooHooo!!! I love attention, even got a link back... Just kidding, I feel unworthy, I just tried putting in my two cents, and didn't think it was such a contribution.

To the point, of course Scott is right, XmlReader is much more efficient than XmlDocument (I'm not going into this read his post), also I agree about the Nametable usage, I also wondered but I answered myself (and Scott explains it better) obviously comaring pointers is faster than comparing strings and pointers... By creating a dummy object with the needed information and comparing that - you let the faster comparison to work.

Anyway obviously using XmlReader correctly (as Scott suggests) is probably faster and more efficient than using XPathReader (since XPathReader is a wrapper around XmlReader, and it is not optimized for your query).

As usual it burns down to what you need your application to do, in the case described XmlReader is probably the best option.

Posted on Tuesday, March 7, 2006 10:16 AM Work Related | Back to top


Comments on this post: I was mentioned by Scott, or XmlReader vs. Others...

No comments posted yet.
Your comment:
 (will show your gravatar)
 


Copyright © Moshe Eshel | Powered by: GeeksWithBlogs.net | Join free