Yes, fields that are not set do not take up any space in the wire format, 
so a message with fewer fields set will generally be smaller when it is 
serialized.

On Thursday, August 31, 2017 at 1:26:09 AM UTC-7, Сергей Дранишников wrote:
>
> Hi all,
>
> I have a question about the technique save data in the result file using 
> Protocol Buffers technology.
>
> For setting values at the fields Protocol Buffers message we use set() 
> functions. And we have "optional" rule for fields.
>
> Question: Will be size of result file changed If we don't set some fields 
> at the message? Will be size of result file less?
>
> Thanks.
>

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to