▲ | dgan 4 days ago | |||||||||||||||||||||||||||||||
i have to confess , i use Protobuffs for everything. They convert to pure python (a la dataclass), to json strings and to binary strings, so i literally shove it everywhere : network, logic, disk. BUT when doing heavy computation (c++, not python !) don't forget to convert to plain vectors, Protobuffs are horribly inefficient | ||||||||||||||||||||||||||||||||
▲ | the__alchemist 4 days ago | parent [-] | |||||||||||||||||||||||||||||||
Protobuf is fine if: A: You control both ends of the serialized line, or: B: The other end of the line expects protobufs. There are many [de]serialization scenarios where you are interfacing with a third party API. (HTTP/JSON web API, a given IC's comm protocol as defined in its datasheet etc) | ||||||||||||||||||||||||||||||||
|