[Haskell-cafe] Haskell maximum stack depth

Stefan O'Rear stefanor at cox.net
Mon Feb 4 22:56:19 EST 2008


On Mon, Feb 04, 2008 at 10:13:12PM +0000, Adrian Hey wrote:
>> Also
>> remember that this behaviour never wastes more than 50% of the stack,
>> which is a relatively small amount.
>
> Only if the stack is relatively small. Would you say the same about
> heap, or about a stack that only needed 50% of heap space but ended
> up using all of it? Or money? Using twice as much as you need of
> anything is bad IMO.

Apparently you don't realize that GHC normally uses twice as much heap
as is needed, due to the decision to use a two-space copying collector
by default for the oldest generation. :)

Stefan
-------------- 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/20080204/4bd3f9df/attachment.bin


More information about the Haskell-Cafe mailing list