
30 Apr
2010
30 Apr
'10
10:45 a.m.
I have been looking at using XML for a little program I have been writing. The file I am currently trying to load is about 9MB, and I have now tried to use HaXml and HST. Without any of my own code, just a simple call to the basic parsers, they both use huge amount of memory. HST is the worst and about 7GB and climbing. HaXml uses 1.3Gb.
Are you using Text.XML.HaXml.ParseLazy, or Text.XML.HaXml.Parse? The lazy version should show much better space usage, provided your subsequent usage of the document is roughly a single-pass traversal. Regards, Malcolm