[protobuf] Re: Protobuf Buffers v3.0.0-alpha-1

2014-12-11 Thread Vladimir Agafonkin
Really awesome! One question about maps — how are they encoded in terms of packed size? How does it compare to just using a repeated message with key/value pairs? On Wednesday, December 10, 2014 11:51:01 PM UTC-5, Feng Xiao wrote: > > Hi all, > > I just published protobuf v3.0.0-alpha-1 on our g

Re: [protobuf] Re: Protobuf Buffers v3.0.0-alpha-1

2014-12-11 Thread Vladimir Agafonkin
Oh, bummer. I was hoping for a more compact map packing. Currently I'm using the following to do this: repeated uint32 properties = 1; // key/value index pairs repeated string keys = 2; // unique keys repeated string values = 3; // unique values On Thursday, December 11, 2014 2:24:09 PM UTC-5, F

Re: [protobuf] Protobuf Buffers v3.0.0-alpha-1

2014-12-15 Thread Vladimir Agafonkin
Hi Feng, > As far I know, protobuf wire format does not have much of an advantage > over JSON format on web apps because the payload is usually small enough > and encoding/decoding protobuf wire format with Javascript does not > necessarily have a better performance than the built-in JSON >