Hi guys, I'm pretty new to using protobuf and maybe this question has been answered multiple times, but is there a way to check for messages duplications and drop them before sending them over socket/wire?
The thing is, my code sometimes generating messages of the same type with same field values (identical messages) and I want to skip sending those duplicated message. I know that protobuf is unhashable. However, if all the messages are generated *within same process*, is it possible that: msg1.SerializeToString() != msg2.SerializeToString() ? My idea was to use serialized values as dict key and the message as a value, so I won't have problems with same messages. P.S. I am also trying to remove possibility of duplicate message generating, however I am not there yet Thanks! -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/protobuf/1c7ad210-742b-488c-be9b-bfa11ed9d75an%40googlegroups.com.
