▲ | fluoridation 7 days ago | |||||||
I mean... you can nest-encode stuff in any serial format. You're not describing a problem either intrinsic or unique to Protobuf, you're just seeing the development org chart manifested into a data structure. | ||||||||
▲ | xmddmx 7 days ago | parent [-] | |||||||
Good points this wasn't entirely a protobuf-specific issue, so much as it was a (likely hierarchical and historical set of) bad decisions to use it at all. Using Protobuffers for a few KB of metadata, when the photo library otherwise is taking multiple GB of data, is just pennywise pound foolish. Of course, even my preference for a simple JSON string would be problematic: data in a database really should be stored properly normalized to a separate table and fields. My guess is that protobuffers did play a role here in causing this poor design. I imagine this scenario: - Photos.app wants to look up location data - the server returns structured data in a ProtoBuffer - there's no easy or reasonable way to map a protobuf to database fields (one point of TFA) - Surrender! just store the binary blob in SQLITE and let the next poor sod deal with it | ||||||||
|