-
Hey everyone! Let me introduce you to mus-go - the fastest Golang serializer today. If you look at benchmarks (https://github.com/alecthomas/go_serialization_benchmarks), you can see that it could be almost twice as fast as its closest "competitor":
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
Might want to add it to https://github.com/ugorji/go-codec-bench
-
For what it's worth, even the stdlib json package will panic in certain edge cases involving unmarshaling a composite type. But yeah, generally, JSON unmarshaling errors *are* returned as errors.
-
msgpack
MessagePack is an extremely efficient object serialization library. It's like JSON, but very fast and small.
Sorry, but I don't think it looks like MessagePack. I wonder why you think so? MUS format does not contain a data types, unlike MessagePack. So, for example, the uint8 type in MessagePack can be encoded with two bytes (from the MessagePack specification): uint 8 stores a 8-bit unsigned integer +--------+--------+ | 0xcc |ZZZZZZZZ| +--------+--------+ The same data type in MUS format is encoded with just one byte. This fact alone is quite a significant difference.