[Haskell-cafe] Memory leak in streaming parser

Oren Ben-Kiki haskell-oren at ben-kiki.org
Wed Apr 4 01:39:25 EDT 2007

I refactored the code and uploaded a new version to Hackage
(YamlReference-0.2). It is cleaner now and much more efficient. It is
still "leaking" memory though. The profiler hints at "bindReply" as
the culprit retaining State and Reply objects, but it isn't clear to
me why the code would do that. Trying to `seq` things again either
kills streaming or has no effect. Perhaps my basic approach is

Any advice would be appreciated,

    Oren Ben-Kiki

More information about the Haskell-Cafe mailing list