[Haskell-cafe] UArray Word16 Word32 uses twice as much memory as it should?

2008-11-19 Thread Arne Dehli Halvorsen
Hello, I am having an issue with these unboxed arrays. I have some code that creates this structure:: (Array Word16 (UArray Int Word32), Array Word16 (UArray Int Word8)), and I am finding that it uses about twice as much memory as I had anticipated. This tuple is returned strict, and I think I

Re: [Haskell-cafe] UArray Word16 Word32 uses twice as much memory as it should?

2008-11-19 Thread Bulat Ziganshin
Hello Arne, Wednesday, November 19, 2008, 11:57:01 AM, you wrote: finding that it uses about twice as much memory as I had anticipated. it may be 1) GC problem (due to GC haskell programs occupies 2-3x more memory than actually used) 2) additional data (you not said how long each small array.

Re: [Haskell-cafe] UArray Word16 Word32 uses twice as much memory as it should?

2008-11-19 Thread Arne Dehli Halvorsen
Bulat Ziganshin wrote: Hello Arne, Wednesday, November 19, 2008, 11:57:01 AM, you wrote: finding that it uses about twice as much memory as I had anticipated. Hello, and thank you for your reply. it may be 1) GC problem (due to GC haskell programs occupies 2-3x more memory than