Hi,
is there anybody out there who can tell me how the special methods
like addcleared(), etc. for repeated field ptr work?
I guess I can somehow improve/avoid the allocation overhead, right?
Say, I have the following messages,
message test {
repeated chunk = 1;
}
message chunk {
int
However, instead of trying to control all this in detail, it's usually
easiest to simply make sure that you reuse your protobuf objects. If you
parse a message, clear it, and then parse another message into the same
object, it will reuse the memory for sub-objects and such which was