[Haskell-cafe] binary package: memory problem decoding an IntMap

Manlio Perillo manlio_perillo at libero.it
Sun Apr 5 18:58:01 EDT 2009


Manlio Perillo ha scritto:
> [...]
> 
> It seems there is a problem with tuples, too.
> 
> I have a:
>     [(Word16, UArr (Word32 :*:* Word8))]
> 
> This eats more memory than it should, since tuples are decoded lazily.
> 

My bad, sorry.

I simply solved by using a strict consumer (foldl' instead of foldl).


Manlio


More information about the Haskell-Cafe mailing list