2008/7/20 Krzysztof Skrzętnicki <[EMAIL PROTECTED]>: > On Sun, Jul 20, 2008 at 12:34 AM, Bulat Ziganshin > <[EMAIL PROTECTED]> 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. -- Jedaï
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe