3 ms·
I don't understand why JSON would get faster for larger types. Anyway a 524 byte type is already fairly large.
by houseabsolute 17y ago
I don't understand why JSON would get faster for larger types. Anyway a 524 byte type is already fairly large.
- jrockway 17y agoNo, 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.
- houseabsolute 17y agoBut 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.