
3 Oct
2017
3 Oct
'17
10:25 a.m.
"Boespflug, Mathieu"
You might want to have a look at https://github.com/mboes/ghc-events/tree/streaming. Similar to what you mention, it uses the "streaming" package for the incremental parsing. I ran into an issue with binary that I wasn't able to track down: even medium sized buffers make the parsing slower (significantly so) rather than faster (my suspicion: something somewhere that should be constant time is actually linear).
Indeed there was a rather terrible bug potentially leading to unexpected asymptotic performance issues present in `binary` versions prior to 0.8.4 IIRC. See https://github.com/kolmodin/binary/pull/115. Perhaps this is what you are hitting? Cheers, - Ben