Hot questions for Using Cap'n Proto in android

Question:

I'm currently using wire protocol buffers in one of my android apps and looks like it's parseFrom() method is not very efficient as it takes ~10 ms even to parse a very small amount of data.

So I came across this: https://capnproto.org/index.html

Does anyone know what's the key difference between these two protocol buffers, mainly in terms of performance and features?


Answer:

"Wire Protocol Buffers" is just another implementation of Protocol Buffers. Cap'n Proto is an entirely different, incompatible format. The Cap'n Proto web site has lots of text explaining how it is different from Protocol Buffers. The main problem with Cap'n Proto is that it isn't as mature or widely-used.

If you find that a protobuf parser takes 10ms to parse a small amount of data, it's very likely that there is something else wrong. Typically it should be able to parse around a megabyte or more in that time.