2008/7/19 Krzysztof Skrzętnicki <[EMAIL PROTECTED]>: > I forgot to mention that the memory consumption is several times higher than > file size. On 8,3 Mb file: >> 532 MB total memory in use (4 MB lost due to fragmentation). > > Having that 8 Mb in memory is not the problem. 532 Mb is another story. In > general, the program consumes roughly 64 times more memory than file size > and it scales linearly.
You should be using ByteString, though this problem would be alleviated if you were consuming the file as a stream. -- Jedaï
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe