[Haskell-cafe] Binary I/O options

Denis Bueno dbueno at gmail.com
Sat Apr 25 11:43:16 EDT 2009

On Fri, Apr 24, 2009 at 08:40, Edward Kmett <ekmett at gmail.com> wrote:
> The only caveat I would mention about using Data.Binary is that it traverses
> lists twice to encode them. Once to determine the length and once to output
> the list. As a result you may see space-leak-like behavior when encoding
> very long lists with Data.Binary.

The same holds for reading back a very long list.  It forces the list
spine before you can get at any elements.

More information about the Haskell-Cafe mailing list