
14 Mar
2009
14 Mar
'09
9:09 a.m.
Grzegorz Chrupala wrote:
Hi all, Is there a serialization library other than the Data.Binary from hackage?
Yes. "binary-strict" is one alternative: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/binary-strict
I am using Data.Binary in a couple of projects, but I have found its stack and memory usage very hard to control. Its very common that decoding a map or list of non-trivial size uses up all available RAM, or causes a stack overflow.
I don't care that much about it being extremely fast, I just want to stop worrying that if I try to read a file a few percent larger than the last time, my program will suddenly stop working.
Best, -- Grzegorz