Hello Alistair,

Thursday, September 01, 2005, 6:36:09 PM, you wrote:

AB> The heap profile graph for this program shows an initial peak, and
AB> then the graph is flat at 8Mbytes, which I think is the space
AB> allocated to the two STArrays (2 arrays, 1 million chars each, 4 bytes
AB> per char?). So it looks as though any allocation for the loop function
AB> is GC'd very soon after it's allocated.

Char uses 4 bytes because it must hold any Unicode character, which is
about 1 million :)  use Word8 or CChar


-- 
Best regards,
 Bulat                            mailto:[EMAIL PROTECTED]



_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to