[Haskell-cafe] Haskell XML Parsers
malcolm.wallace at cs.york.ac.uk
Fri Apr 30 06:45:42 EDT 2010
> 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.
More information about the Haskell-Cafe