
14 Mar
2009
14 Mar
'09
9:28 a.m.
Svein Ove Aas ha scritto:
On Sat, Mar 14, 2009 at 1:37 PM, Grzegorz Chrupala
wrote: Hi all, Is there a serialization library other than the Data.Binary from hackage?
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.
That little problem appears to be an artifact of the particular Binary instance for lists (the map instance starts by converting to/from a list), and should be fixable in principle, for example by writing them in chunks of 256 elements.
I can confirm that reading serialized UArr from uvector package does not cause memory problems. Manlio