Re: [protobuf] Why not to allow [packed = true] for all repeated field?

2010-01-18 Thread Kenton Varda
In addition to what Henner says, we felt that it wasn't worthwhile to implement packed encoding for strings or sub-messages because the savings would be very small. The packed encoding only saves one or two bytes per element. On Sun, Jan 17, 2010 at 7:30 PM, Henner Zeller

[protobuf] Why not to allow [packed = true] for all repeated field?

2010-01-17 Thread Atry
When I set [packed = true] on a nested message field, I receive this error: [packed = true] can only be specified for repeated primitive fields. I wonder why it is disallowed. The output for packed nested field list as the below: The field number and wire type LENGTH_DELIMITED. Length of all