[Haskell-cafe] Comments and suggestions on code
Andre Nathan
andre at digirati.com.br
Sat Jan 12 13:26:13 EST 2008
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,
right? I think that's where the 8M vs 2M difference comes from.
Andre
More information about the Haskell-Cafe
mailing list