Comment #1 on issue 588 by Petteri.Aimonen: Add delta mechanism to the encoding
http://code.google.com/p/protobuf/issues/detail?id=588

You can implement this yourself in your application:

1) In the .proto, declare all fields as optional.

2) On the encoder side, reset the message after every encoding. Then it will only contain those optional fields that you have set after the previous message.

3) On the decoder side, instead of ParseFromString(), use MergeFromString(). This way the decoder will update those fields that are in the message, while rest of them will retain their old value.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to