http://code.google.com/apis/protocolbuffers/docs/techniques.html#streaming

On Sun, Jun 14, 2009 at 4:14 PM, Alex Black <a...@alexblack.ca> wrote:

>
> 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...
>
> thx,
>
> - Alex
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to