[Haskell-cafe] ansi2html - one program, several issues

Chaddaï Fouché chaddai.fouche at gmail.com
Sun Jul 20 01:25:37 EDT 2008

2008/7/20 Krzysztof Skrzętnicki <gtener at gmail.com>:
> On Sun, Jul 20, 2008 at 12:34 AM, Bulat Ziganshin
> <bulat.ziganshin at gmail.com> wrote:
>> Hello Krzysztof,
>> Sunday, July 20, 2008, 1:55:45 AM, you wrote:
>> >>> 532 MB total memory in use (4 MB lost due to fragmentation).
>> i think that Parsec library should hold entire file in memory only when
>> you use 'try' for whole file. otherwise it should omit data as
>> proceeded
> That's exactly what I thought. But even if I remove the only 'try' I use the
> memory consumption remains unchanged:

It's true, but in your case your output is almost the raw input data,
which means that even without a noxious "try", you still have the
whole file in memory. Well hopefully not with your latest code, which
I would really like to see.


More information about the Haskell-Cafe mailing list