summaryrefslogtreecommitdiffhomepage
path: root/Serialization.hs
Commit message (Collapse)AuthorAge
* use cereal for efficient serialization for wire formatJoey Hess2017-04-21
I tried both binary and cereal. For a ActivityMessage that takes 341 bytes in JSON and has a dataSize of 129, both used 165 bytes. Went with cereal since lazy bytestrings are not needed, and I might want to use https://hackage.haskell.org/package/safecopy later. (Perhaps I should be using protocol buffers or something to make it easier for non-haskell implementations? But that would complicate things a lot.)