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