.net - Performance: XmlReader or LINQ to XML -


i have 150 mb xml file used db in project. i'm using xmlreader read content it. want know if better use xmlreader or linq xml scenario.

note i'm searching item in xml , display search result, can take long time or moment.

if want performance use xmlreader. doesn't read whole file , build dom tree in memory. instead, reads file disk , gives each node finds on way.

with quick google search found performance comparison of xmlreader, linqtoxml , xdocument.load.

https://web.archive.org/web/20130517114458/http://www.nearinfinity.com/blogs/joe_ferner/performance_linq_to_sql_vs.html


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -