basho / riak_dt

Convergent replicated datatypes in Erlang
Apache License 2.0
353 stars 70 forks source link

Add serialization formats #11

Closed seancribbs closed 11 years ago

seancribbs commented 12 years ago

Each CRDT should define the on-the-wire and on-the-disk format for its internal structure; that is, it should be able to serialize and deserialize itself. This can potentially reduce the overhead of Erlang term format serialization and give the opportunity for compression.

seancribbs commented 11 years ago

The riak_dt behavior now has from_binary/1 and to_binary/1 callbacks which accomplish this task.