
2 Nov
2004
2 Nov
'04
10:01 a.m.
On 2004-11-01, Peter Simons
Alexander N Kogan writes:
I'm newbie and I don't understand how to process large files in haskell with constant memory requirements.
Read and process the file in blocks:
I don't think that would really save much memory, and in fact, would likely just make the code a lot more complex. It seems like a simple wrapper around hGetContents over a file that uses block buffering would suffice. (The block buffering to boost performace.) -- John