I've realized that submessage size is needed because field numbers of 
message and submessage can be the same. But we can use fields members count 
instead of the size. It makes decoding fields of submessages like iterating 
array members. In case of three fields we just write 3 as size. It's lesser 
than size and can make messages even smaller in case of submessages larger 
than 127 bytes (1 byte instead of two).

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to