[Haskell-cafe] Difficult memory leak in array processing
Udo Stenzel
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
> somewhere.
No, it doesn't. It can't, because it doesn't even compile. After
correcting the obvious
> (lo, hi) <- getBounds buf
to
let (lo,hi) = bounds buf
it just works and needs 40MB plus epsilon. Your problem has to be
somewhere else.
-Udo.
--
fork(2)
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
Type: application/pgp-signature
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
mailing list