Re:Updating the Git protocol for SHA-256
by lmilcin on Saturday June 20, 2020 @05:25AM
(#23582836)
Same reason we use other "inefficient" protocols like json or HTTP and not "superior" binary alternatives.
[ Parent
| on HN ]
http2 is in fact binary, it's only converted to a text representation for human convenience when needed, the same can be done with other protocols.
HTTP 2 only recently reached 50% adoption.
So what do you think of CBOR being used in new IETF standards?
I don't think anything about it because I do not care. Just because binary protocols exist it does not undermine convenience of text protocols.
You are free to use CBOR for your configuration files for your next application. Then come back and tell us of your experiences.
Git uses text hashes in many, many places. This makes it convenient for the users which is very important design goal. I am pretty sure that replacing this with binary hashes would be insignificant performance improvement.