[protobuf] Re: Serialized Object as a value in Key-Value store.

2011-10-03 Thread Eyal Farago
according to my experience, not so much I'm afraid... since PB format is length prefixed, or actually tag+length prefixed, the compression rates are not as high as one might expect. I migrated from an in-house XML format to a PB based format, the performance gain was amazing (both serialize and u

[protobuf] Simple working example of GzipOutputStream and GzipInputStream

2011-10-03 Thread Luke
Dear all, after some days of experimenting with Protocol Buffers I tried to compress the files. With Python this is quite simple to do and does not require any play with streams. Since most of our code is written in C++ I would like to compress/ decompress files in the same language. I've searche