Re: [protobuf] Question about size/speed of protobufs with different formats

2013-08-06 Thread Christopher Head
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Wouldn’t it be even smaller to do this message Packet { repeated uint32 pids = 1 [packed=true]; repeated string execnames = 2; } working under the assumption that the two repeated fields will be the same length? You will burn two

Re: [protobuf] Question about size/speed of protobufs with different formats

2013-08-05 Thread Ilia Mirkin
Well, for regular values, it goes tag value, for a subproto it goes tag length submessage (which in turn has tag value pairs in it). So it depends on the number of fields inside of the message, and how many bytes it is total. But assuming non-edge-case conditions, you're probably better off using