[Haskell-cafe] binary package: memory problem decoding an IntMap
manlio_perillo at libero.it
Mon Apr 13 09:10:45 EDT 2009
Nicolas Pouillard ha scritto:
> Excerpts from Manlio Perillo's message of Sun Apr 05 22:41:57 +0200 2009:
>> Manlio Perillo ha scritto:
>> I have a:
>> [(Word16, UArr (Word32 :*:* Word8))]
>> This eats more memory than it should, since tuples are decoded lazily.
> Why not switch to [(Word16 :*: UArr (Word32 :*: Word8))] then?
I finally made some tests today, and I can confirm that using :*:
reduces memory usage.
More information about the Haskell-Cafe