[Haskell-cafe] No copy XML parser (rough idea only)

Felipe Lessa felipe.lessa at gmail.com
Fri May 14 14:31:38 EDT 2010


On Fri, May 14, 2010 at 08:57:42AM -0700, John Millikin wrote:
> Additionally, since the original bytestring is shared in your types,
> potentially very large buffers could be locked in memory due to
> references held by only a small portion of the document. Chopping a
> document up into events or nodes creates some overhead due to the
> extra pointers, but allows unneeded portions to be freed.

However, if your bytestring comes from mmap'ed memory this
drawback wouldn't apply :D.

--
Felipe.


More information about the Haskell-Cafe mailing list