Protocol Buffers is great, but there's something I don't understand.

VarInt is great to store positive integers
sint32/64 are stored as "zigzag" VarInt

why int32/64 aren't stored as :
 1) VarInt when positive (type 0)
 2) NegativeVarIn when negative (a new type 6 that store the opposite
value as a positive VarInt)

Then you don't need to specify sint32/64 in the Message and integers
will be stored in the most efficient way each time, regardless of they

Regards from France

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to