ipfs/go-ipld-cbor

migrate to new cbor lib

whyrusleeping opened this issue · 7 comments

We should use https://github.com/polydawn/refmt, it was designed with a lot of our usecases in mind

This lib could be also used for serialization of dagNodes (currently ipld modules are hard-coded with MarshalJson)

cc @Stebalien

Missing pieces:

Note: some quick benchmarking shows that the current library is slightly faster (especially when decoding). However, that may change when decoding/encoding directly to a datastructure rather than an object.

Checking on status here. This is still WIP?

Yes but it's getting close. I need to review and merge some CID changes (so we'll always just use cid.Cid instead of *cid.Cid). Then, we'll need to update the refmt version here and we should be good to go.

Done.