What are the advantages of varint encoding as used in protobuf? Is it simply that for smallish messages varints waste less space and time than variable size encodings that add sublinear space?
I suppose someone thought about typical or average message sizes when they picked varints for protobuf? Any public comments on the reasoning?