Hi all,
When implementing a Message class, with one or more fields, we must type a unique number for each field (see the doc)
I can find somewhere in the code the limits for these numbers (even if I have been unable to find them in the documentation main page)
But, do these numbers have an impact on the length of the message, thus on the performance of the exchanges? I remember having seen some documentation about the encoding of those numbers on the wire, but I am unable to find it anymore. Has this question sense in the context of the GAE standard, python runtime? :-)
Thanks in advance,
Ivo BS
Hi Ivo,
Before proceeding any further, can you confirm that your question is concerned with “unique numbered tags”? If it is the case, you may be interested to learn more about them on this Assigning Tags section of the Protocol Buffers Language Guide.
As part of the recommendations, it is advised to assign tags 1 to 15 to very frequently occurring message elements as they would take one byte to encode. Therefore, it is reasonable to expect these numbers to have an impact on the length of the message, thus on the performance of the exchanges. Also, here is the possible Encoding documentation you were referring to.
Regards,
Alex