Streaming different types of messages

2009-03-27 Thread achintms
If I understand correctly there is no good way to use proto buffers to stream different types of messages, right? For example if my stream has a mix of several messages of type m1 and m2, I will have to device a scheme outside of proto buffers to separate it into 2 streams and then pass it through

Re: Streaming different types of messages

2009-03-27 Thread achintms
Thanks. Also how do I know the type of the message? One way would be to check all optional fields (each represent a different type of message) of the wrapper message and then pick the one which is not null. Is that the only way? On Mar 27, 12:08 pm, Dave Bailey wrote: > Kenton, > > I don't suppo

[protobuf] Performance of java proto buffers

2010-08-19 Thread achintms
I have an application that is reading data from disk and is using proto buffers to create java objects. When doing performance analysis I was surprised to find out that most of the time was spent in and around proto buffers and not reading data from disk. On profiling further (using yourkit) I fou

[protobuf] Re: Performance of java proto buffers

2010-08-23 Thread achintms
until it is needed. For example for comparisons I should just be able to use the bytes. Also do you think that if I encode/decode using utf-16 it would be faster? Clearly it is not as compressed. On Aug 22, 11:58 am, Evan Jones wrote: > On Aug 19, 2010, at 11:45 , achintms wrote: > > &g