[Haskell-cafe] Alternative to Data.Binary
manlio_perillo at libero.it
Sat Mar 14 09:28:16 EDT 2009
Svein Ove Aas ha scritto:
> On Sat, Mar 14, 2009 at 1:37 PM, Grzegorz Chrupala
> <grzegorz.chrupala at computing.dcu.ie> 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
> 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.
More information about the Haskell-Cafe