[Haskell-beginners] space leak
Daniel Fischer
daniel.is.fischer at web.de
Mon Feb 15 18:16:09 EST 2010
Am Montag 15 Februar 2010 23:42:03 schrieb Uchida Yasuo:
> That's right! You solved the mystery of the magic number!
>
> --- Felipe Lessa wrote:
> > You can try to verify this by using L.toChunks and noting how
> > many chunks are being created.
>
> $ ./gen | head -1000 | ./test 17000 +RTS -sstderr > /dev/null
> ./test 17000 +RTS -sstderr
> first chunk : 16384
It's not so easy, I get varying values: 4096, 8192, 32760, 28658, 16376,
12288, ...
It may be different on other machines, but on my box, there's no hard
"magic number", just a tendency to get 1xbuffer size or 2xbuffer size, or
defaultChunkSize, the other values are rarer.
> --
> Regards,
> Yasuo Uchida
More information about the Beginners
mailing list