[Haskell-cafe] Difficult memory leak in array processing
u.stenzel at web.de
Thu Nov 23 07:39:36 EST 2006
Niko Korhonen wrote:
> I have the following code whose purpose is to add dither (noise) to a given
> array. The code looks very straightforward but apparently it has a memory leak
No, it doesn't. It can't, because it doesn't even compile. After
correcting the obvious
> (lo, hi) <- getBounds buf
let (lo,hi) = bounds buf
it just works and needs 40MB plus epsilon. Your problem has to be
New processes are created by other processes, just like new humans.
New humans are created by other humans, of course, not by processes.
-- Unix System Administration Handbook
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20061123/af59f20b/attachment.bin
More information about the Haskell-Cafe