Is there a way to start sending a message before its fully composed?

Say we have messages like this:

message Entity
    required int32 id = 1;
    required string name = 2;

message Entities
   repeated Entity entity = 1;

If we're sending a message Entities with 1,000 Entity objects in it,
is there a way to avoid composing the entire message in memory,
serializing it, and then sending it out?

I'd like to avoid allocating RAM for the entire message, and just send
it out as I compose it...


- Alex
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