News for hackers. Stuff that matters.
Re:MessagePack: Fast and Compact Serialization by mdonahoe on Monday August 15, 2011 @08:54AM (#2886619)
Is this actually better than gzipped JSON?
Re:MessagePack: Fast and Compact Serialization by rabidsnail on Monday August 15, 2011 @01:53PM (#2887924)
This appears to be mmap-friendly. Since arrays have length values it's possible to jump around in a large messagepack-serialized structure without having to scan it. In JSON if you want to get to element 2 of an array you have to scan to the end of element 1. If there's a length value at the beginning of element 1 (as it looks like there is with msgpack) then you can seek straight past it.
Re:MessagePack: Fast and Compact Serialization by roel_v on Monday August 15, 2011 @09:24AM (#2886744)
Depends on how you define 'better', I guess - at the very least it has to be several magnitudes faster, with no overhead for compression, parsing, etc.
Re:MessagePack: Fast and Compact Serialization by frsyuki on Monday August 15, 2011 @12:00PM (#2887414)
You can use type-conversion APIs with MessagePack if you use C++, Java or C#. It converts deserialized objects (=dynamically-typed) into statically-typed objects using templates (C++) or reflection + dynamic code generation (Java and C#). You don't have to write boring type-checking codes.

Note that this is a characteristic of the implementation, not of the data format. Some libraries for JSON like JSONIC (Java) provides these APIs.