[Haskell-cafe] Comments and suggestions on code

Jonathan Cast jonathanccast at fastmail.fm
Sat Jan 12 19:00:15 EST 2008

On 12 Jan 2008, at 10:26 AM, Andre Nathan wrote:

> On Sat, 2008-01-12 at 10:11 -0800, Jonathan Cast wrote:
>> A nit: the list is almost certainly getting created lazily, or you'd
>> get more than 300% more memory usage.  But you still get the list's
>> cons cells as your bookkeeping baggage, and they take up space in
>> exchange for greater flexibility.
> But when I'm processing, say, the last directory entry, I have memory
> allocated for the other 9999 entries that have already been processed,

Wait, the last entry?  If you're just printing out the values, then  
no --- those should have been garbage collected already.


More information about the Haskell-Cafe mailing list