4 ms·
Double. That's the inefficiency you can count on with JSON over CBOR or MsgPack if you're dealing with number data or short strings. Sure, the HTTP overhead an
by SlowRobotAhead 7y ago
Double. That's the inefficiency you can count on with JSON over CBOR or MsgPack if you're dealing with number data or short strings.
Sure, the HTTP overhead and TCP overhead under that are significant if you're transferring a single bignum. How about 10,000 of them?
Even if the best case of all strings where binary gets limited by ASCII's inefficiency, "":"", is "only" 5 bytes of wasted data, but what about a million item JSON? 5 million wasted bytes does seem like it outpaces NIC then TCP then HTTP layer overhead. But uea, IDK.
The claim was that JSON is lightweight, it is not. It's not as bad as XML, I'll give it that.