Re: [protobuf] Chunking a large message

2011-03-04 Thread Evan Jones

On Mar 3, 2011, at 15:53 , Linus wrote:

I am wondering if there are any examples of chunking large PB messages
(about 1MB) into smaller chunks, to transmit over the wire.


This is going to be pretty application specific. Typically it involves  
taking one message with a huge repeated field and sending it / writing  
it as a sequence of messages with fewer items for each repeated field.  
So I can't really point you to any examples off the top of my head.


That said: the documentation suggests keeping protocol buffers to be ~  
1 MB in size, so if your messages are 1 MB, I personally wouldn't  
worry about it. Hope this helps,


Evan

--
http://evanjones.ca/

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



[protobuf] Chunking a large message

2011-03-03 Thread Linus
Hello,

I am wondering if there are any examples of chunking large PB messages
(about 1MB) into smaller chunks, to transmit over the wire.

Thanks,
Linus

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