You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlike msgpack, flatbuffers has the additional requirement that in a large type with many fields, if the caller is interested in deserializing only a couple of fields, they don't pay the cost of deserializing all fields.
Such a thing could be modeled as:
@dataclass
class LargeObject:
_field1: type1
_field2: type2
...
_fieldN: typeN
@lazy_property
def field1():
# Code to deserialize
...
I'm not sure if pyserde can provide an additional @flatbuffer decorator at some point with logic provided by the upstream projects.
No change requested at this time. Putting this on your radar for future discussion.
The text was updated successfully, but these errors were encountered:
More context in: google/flatbuffers#6428
Unlike msgpack, flatbuffers has the additional requirement that in a large type with many fields, if the caller is interested in deserializing only a couple of fields, they don't pay the cost of deserializing all fields.
Such a thing could be modeled as:
I'm not sure if pyserde can provide an additional
@flatbuffer
decorator at some point with logic provided by the upstream projects.No change requested at this time. Putting this on your radar for future discussion.
The text was updated successfully, but these errors were encountered: