Xml processing performance

Derik Whittaker┬áhas been running a series of XPath/XLinq comparions and in his last post he compares the performance of the two. The results were quite interesting and surprising to say the least. XLinq is actually 3 times faster when searching for a value in an Xml document! I haven’t done any performance testing like this myself (I will!), but this looks very promising. In Deriks tests it looks like XDocument loads a little slower that XmlDocument, perhaps that loss is in part what improves the performance when searching? I’m thinking maybe they added “indexes” or something similar in XDocument… Anyway, it looks like XLinq is the way to go when manipulating and searching in Xml documents.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>