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

Manlio Perillo 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:
>>> Hi.
>>>
> [...]
>>
>> 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.


Thanks  Manlio



More information about the Haskell-Cafe mailing list