Hello,<br>I am having an issue with these unboxed arrays.<br>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.<br>
<br>This tuple is returned strict, and I think I haven&#39;t left much room for other data remaining in memory.<br><br>It should hold one Word8 and one Word32 for a data set of 100 million records, and it uses around 1 gigabyte. By my calculations, it should be half that.&nbsp; So I was wondering if I might have hit upon a 64-bit vs 32-bit issue.<br>
<br>I&nbsp; compile with:<br><br>ghc --make load05 -O1 -funbox-strict-fields -XBangPatterns -fvia-C<br>(also tried with -O2, and without the -fvia-C)<br><br>using the packaged version of ghc 6.10.1 on MacOSX 10.5.5<br><br>Grateful for any pointers,<br>
<br>Arne D Halvorsen<br><br>