[protobuf] Message vs MessageLite

2010-10-26 Thread Alsmom2005
Hi all, Is it ok if the serialization is made using libprotobuf library and the deserialization (on the other end) is made using code built with libprotobuf-lite library ? That meaning 2 .proto files (the only difference bw those two file is that one contains 'option optimize_for = LITE_RUNTIME')

Re: [protobuf] Message vs MessageLite

2010-10-26 Thread Daniel Wright
Yes -- the serialized format is identical. On Tue, Oct 26, 2010 at 2:56 PM, Alsmom2005 gundanu...@gmail.com wrote: Hi all, Is it ok if the serialization is made using libprotobuf library and the deserialization (on the other end) is made using code built with libprotobuf-lite library ? That

Re: [protobuf] Message vs MessageLite

2010-10-26 Thread Kenton Varda
Instead of maintaining two identical files, I suggest writing a build rule that just constructs the lite version from the regular version. You could use a make rule like: my_lite.proto: my.proto cp my.proto my_lite.proto echo option optimize_for = LITE_RUNTIME; my_lite.proto This way the