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

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to