[ANN] msgpack encoding with built-in Appengine support

67 views
Skip to first unread message

Vladimir Mihailenco

unread,
Feb 2, 2013, 8:49:47 AM2/2/13
to golan...@googlegroups.com
Hi,

Yet another msgpack encoding library: https://github.com/vmihailenco/msgpack

Main features are extensibility and speed. For example, this is how you can add support for Appengine's *ds.Key, which does not support msgpack from the box:

https://github.com/vmihailenco/msgpack/blob/master/appengine.go

As for the speed I have following benchmark for struct:

MsgpackTest.BenchmarkStruct                           100000     13420 ns/op
MsgpackTest.BenchmarkStructUgorjiMsgpack      100000     21267 ns/op
MsgpackTest.BenchmarkStructJSON                   50000      73401 ns/op
MsgpackTest.BenchmarkStructGOB                    10000       105490 ns/op

which benchmarks 1 time encoding/decoding. For streaming encoding GOB performs much better.

API: http://godoc.org/github.com/vmihailenco/msgpack

Reply all
Reply to author
Forward
0 new messages