blaze-binary
blaze-binary copied to clipboard
A draft of a new binary serialization library based on the new bytestring-builder and attoparsec.
See http://stackoverflow.com/questions/10902405/how-to-do-fast-data-deserialization-in-haskell.
There are probably quite a few unnecessary INLINE pragmas in Decoder.hs and Encoder.hs. Remove them if they don't have an effect on the benchmarks.
The CPS branch of has some nice code that exploits the internal representation of `Integer`s. See: https://github.com/kolmodin/binary/blob/master/src/Data/Binary.hs#L418
As described in the README, a `Decoder` should never throw an exception. All errors should be reported via a `Left` message. We can test this by randomly exchanging a few...
See #3 for @basvandijk explanation of this feature.
The title says it all.