[Haskell-cafe] why does the binary library require so much memory?

Bryan O'Sullivan bos at serpentine.com
Fri Jul 31 17:26:18 EDT 2009


On Fri, Jul 31, 2009 at 1:56 PM, Jeremy Shaw <jeremy at n-heptane.com> wrote:

>
> Using encode/decode from Binary seems to permamently increase my
> memory consumption by 60x fold. I am wonder if I am doing something
> wrong, or if this is an issue with Binary.
>

It's an issue with the Binary instance for lists, which forces the entire
spine of the list too early. This gives you a gigantic structure to hold
onto.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090731/76517d4a/attachment-0001.html


More information about the Haskell-Cafe mailing list