Re: Compressed protobufs?

2008-10-21 Thread GDR
Cool. I think this makes sense as I could use GZIPInputStream with mergeFrom() and parseFrom(). On Oct 21, 4:20 pm, "Kenton Varda" <[EMAIL PROTECTED]> wrote: > There is no built-in support for this, but there's nothing stopping you from > applying whatever compression you want to the serialized d

Re: Compressed protobufs?

2008-10-21 Thread Marc Gravell
It /might/ work (especially if there are a lot of repeated strings) - but from my own tests, "compressing" pb-serialized data actually made it bigger (always a good sign for a dense format). Quite possibly Google have seen better results, but it doesn't work for me... Marc --~--~-~--~

Re: Compressed protobufs?

2008-10-21 Thread Kenton Varda
There is no built-in support for this, but there's nothing stopping you from applying whatever compression you want to the serialized data. On Tue, Oct 21, 2008 at 1:08 PM, GDR <[EMAIL PROTECTED]> wrote: > > I noticed the protocol buffers store strings in their uncompressed > form. Is there any p

Compressed protobufs?

2008-10-21 Thread GDR
I noticed the protocol buffers store strings in their uncompressed form. Is there any provision to produce and consume protobufs in compressed form? This would be specially helpful if a lot of fields were repeated strings. --~--~-~--~~~---~--~~ You received this mes