L.S., As my e-mail program mangled the copy/pasted source code a bit, I resend it as an attachment. Best regards, Henk-Jan van Tuyl On Fri, 10 Oct 2003 01:33:48 +0200, Henk-Jan.van.Tuyl <Henk-Jan.van.Tuyl@hotpop.com> wrote:
L.S.,
After reading through 60 or 61 files (about 220 kB), Hugs fails with the message: (1426170 reductions, 2976893 cells, 68 garbage collections) ERROR - Garbage collection fails to reclaim sufficient space
This is done with the program below (ReadALot.lhs), which reads a series of files (these files are listed in dir.dat). The program reads the first and the last (non-empty) line of each file and writes them, together with the filename in the output file result.dat.
The program works fine when compiled with GHC, it then reads 2946 files without a problem.
More info.: System: Windows 98 Hugs version: Nov 2002
Best regards, Henk-Jan van Tuyl