On May 16, 2011, at 9:45 , Nigel Pickard wrote:
I have actually got the code working, but it involves creating a new
output stream everytime I write to it (surely got to be wasteful and
not the right way?).

Definitely not needed, and it will be more efficient if you can re-use a single FileOutputStream, as it does buffering internally. You should probably create a CodedOutputStream for each message you write, but this can be stack allocated and is very lightweight.



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 
For more options, visit this group at 

Reply via email to