Re:MessagePack - Extremely efficient object serialization li...
by jrockway on Friday March 19, 2010 @02:23AM
(#1203519)
I bet gzipped JSON compares favorably for larger objects, though, and has the advantage of not being a new protocol. The fact that it supports Haskell and Perl with proper hackagedb / cpan modules is nice, however. Very rare for web 2.0 stuff.
[ Parent
| on HN ]
Re:MessagePack - Extremely efficient object serialization li...
by KirkWylie on Friday March 19, 2010 @05:10AM
(#1203717)
gzipping JSON or XML compares relatively favorably against a pure-binary protocol for suitably large messages, but not for pretty small messages.
In addition, the speed of the compression stream really becomes an issue if you're sending messages within a cluster. Over the internet your bandwidth and latency will start to become more important, but within a data centre all pure-binary protocols are much faster.
Re:MessagePack - Extremely efficient object serialization li...
by houseabsolute on Friday March 19, 2010 @04:09AM
(#1203650)
I don't understand why JSON would get faster for larger types. Anyway a 524 byte type is already fairly large.
Re:MessagePack - Extremely efficient object serialization li...
by jrockway on Friday March 19, 2010 @10:55AM
(#1204257)
No, the compression algorithms begin to behave as well as hand-optimized binary protocols as the message size increases, because the constant overhead for mapping away the redundancy becomes a small percentage of the overall message.
Re:MessagePack - Extremely efficient object serialization li...
by houseabsolute on Friday March 19, 2010 @01:04PM
(#1204568)
But if just building the JSON representation already takes more time than the binary protocol, I can't see how adding gzip to it is going to make it faster.