[Haskell] why I need so much memory????
Tomasz Zielonka
tomasz.zielonka at gmail.com
Wed Nov 9 07:11:54 EST 2005
On Tue, Nov 08, 2005 at 06:40:36PM +0100, Alberto Fuentes Rodriguez wrote:
> Each card is represented with a Char (to make the structure smaller) and
> then all the hands are a [[Char]]
> in total the structure has a size of arround 20Mb.
>
> Ok the complexity is high but.... why this program needs 1GB (the structure
> only has 20MB) of memory??
Perhaps the structers *does* take 1GB, but till now the program didn't
require it all in memory at once because of lazy evaluation and GC.
Best regards
Tomasz
More information about the Haskell
mailing list