mozilla / mentat

UNMAINTAINED A persistent, relational store inspired by Datomic and DataScript.
https://mozilla.github.io/mentat/
Apache License 2.0
1.65k stars 115 forks source link

Use serde_cbor for more compact serialization of transactions #570

Open grigoryk opened 6 years ago

grigoryk commented 6 years ago

Currently datoms are serialized as json, which is nice for debugging but a bit of an overkill in practice.

We can save about 20% or so on storage and over-the-wire bandwidth costs for the client by serializing via serde_cbor. It would be nice to be able to switch easily between the two modes, but not necessary.