message A {
    string a; when set_a(), memory of a in heap(new/malloc)
    int b; when set_b(), memory of b in stack

if defines many composite sub-class objects, a lot of time cost in new/
malloc. are you think so? or have a good idear for this?

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to