[Haskell-cafe] Why does this program eat RAM?

Jeremy Shaw jeremy.shaw at linspireinc.com
Tue Sep 5 01:15:12 EDT 2006


At Mon, 04 Sep 2006 22:05:57 -0700,
Jeremy Shaw wrote:
> 
> At Tue, 5 Sep 2006 03:03:51 +0000 (UTC),
> John Goerzen wrote:
> > 
> > I have the below program, and I'm trying to run it on an input of about
> > 90MB.  It eats RAM like crazy, and I can't figure out why.

> If you fold a Data.Map or associative list over the word-list, then
> you could probably get the lazy behaviour you expect.

Oops, I got distracted and looked at the version on the top of the
site, not your email :)

Anyway, I will still consider the possibility that the hold String is
being forced into memory.

j.



More information about the Haskell-Cafe mailing list