News for hackers. Stuff that matters.
Re:MessagePack: like JSON, but fast and small by meritt on Tuesday March 10, 2020 @02:51PM (#22538319)
> shows MsgPack is more space efficient

While I see the same numbers as you do, there's no way a format that includes plaintext keys alongside the values is going to be smaller than a format that only includes a packed field number+type and the corresponding values. There's something fishy going on here, and I can't seem to find a link to the source behind his benchmarks?

Re:MessagePack: like JSON, but fast and small by ludocode on Tuesday March 10, 2020 @05:40PM (#22540036)
I'm not sure if the benchmarks above reflect this, but MessagePack allows you to use integers (or any data type) for map keys. This makes it a lot smaller than using plaintext keys, and makes it comparable to formats like Protobuf despite the lack of formal schema. (You also lose a lot of the context-free readability of messages, so it's a tradeoff.)