No revision of protobufs is ever likely to change the serialized size of
existing messages, because doing so would presumably break backwards
compatibility.  A revision might introduce a new encoding mechanism that is
more compact (like packed encoding did), but this is unusual, since there is
not much room for improvement in the existing encoding.

The "optimizations" mentioned in the changelog are CPU speed or memory usage
optimizations, not encoded size optimizations.

Note that protobufs only encode structure.  They do not do any compression.
 You should apply compression separately on top of your data if you need it.
 Note that this will add considerable CPU cost, so you must decide if it's a
trade-off you want to make.

On Tue, Apr 27, 2010 at 11:08 AM, sheila miguez <[email protected]> wrote:

> Should I see smaller serialization sizes going from 2.0.x to 2.3? I
> was hoping to, and I compiled a sample message to compare
> serialization sizes between versions. The size was the same. The
> sample message has a number of different data types.
>
> I notice in the changelog that string serialization performance is
> improved in 2.3.1. Any idea when it will be released? And, what sort
> of improvements have been observed?
>
> Some of our payloads are large, e.g. 3 MB, and some of the messages
> are composed mainly of strings. Improvements in serialization size
> would be nice. I'm also thinking we should determine best practices
> for message designs that would lead to optimal packing. But, will the
> compiler mostly take care of that? Or will it help for me to determine
> this even so? Have people already published best practices for message
> design?
>
> thanks
>
> --
> sheila
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<protobuf%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to