[Haskell-cafe] Trying to fix space leak
Jake McArthur
jake.mcarthur at gmail.com
Mon Dec 31 11:48:29 EST 2007
On Dec 31, 2007, at 9:53 AM, Paul Johnson wrote:
> I'd advise against trying to make your program stricter because you
> might suddenly find yourself building an entire 6GB structure in
> memory before traversing it, which would not be a Good Thing.
I disagree. It might be the case that the _contents_ of the data
structure are lazy, in which case I would say the relevant constructor
parameters should be made strict. As long as the structural parts are
still lazy it should be okay.
And there's no harm in experimenting. :)
- Jake
More information about the Haskell-Cafe
mailing list