Groups
Groups
Sign in
Groups
Groups
golang-nuts
Conversations
About
Send feedback
Help
[ANN] msgpack encoding with built-in Appengine support
67 views
Skip to first unread message
Vladimir Mihailenco
unread,
Feb 2, 2013, 8:49:47 AM
2/2/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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