At $work, we are looking to replace JSON encoding with another format, to increase encode/decode speed and required storage size.
Requirements, in order of importance for our use case, YMMV:
- no schema requirement: data is JSON-compatible, deeply nested in cases, but we don't have a schema to start from;
- smallest size: we store the objects in memory on Redis DB's, so size is the main factor;
- fast decode: we can trade slower encode speed for size, but decode should be fast;
- language support: stack is Perl, Go, and JavaScript. PHP is a plus, but not required.
We are testing msgpack, cbor, sereal, and others,