3 ms·
One of the most “10,00 foot” unintuitive things is that a text format like json is faster parse than a binary protocol like protobufs.
by ec109685 4y ago
One of the most “10,00 foot” unintuitive things is that a text format like json is faster parse than a binary protocol like protobufs.
- jxi 4y agoIs it actually faster?
- winrid 4y agoIf you apply the same optimizations to the binary protocol it will be much faster than JSON. Even comparing common deserializarion libraries like gson and thrift, thrift is faster despite being much older than protobufs.
- ec109685 4y agoGood point. I was comparing to protobufs, which is slower to parse than json. Other formats are faster.