[Haskell-cafe] Is it safe to use unsafePerformIO here?
Cristiano Paris
frodo at theshire.org
Tue Sep 15 16:30:52 EDT 2009
On Tue, Sep 15, 2009 at 10:25 PM, Cristiano Paris <frodo at theshire.org> wrote:
> ...
> Two points:
>
> 1 - I had to cut off file1.txt to be just above 1024 bytes otherwise
> the program becomes extremely slow even on a 100KB file with a line
> being output every 5 seconds and with my CPU being completely busy
> (I'm using a modern MacBook Pro).
GC in charge here. Using "foldl" resolves the problem. Maybe too many
thunks are being created on the stack...
Cristiano
More information about the Haskell-Cafe
mailing list