Skip to content

Comment on Reasons to use protocol buffers instead of JSONparent

Comments

The vast majority of performance judgments are made without benchmarking, because most of the time the answer is obvious enough without the need to measure.

This is one of those times. Parsing the text "1234" is obviously going to be slower than loading its binary value, and text obviously takes more space than binary.

That said, the internet is full of benchmarks backing this up if you care to Google it.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.