zbus-old
zbus-old copied to clipboard
Inefficient array decoding
trafficstars
The current Decode::decode implementations decodes all the elements upfront, which is very inefficient. It's not a problem in most cases in the context of D-Bus but GVariant was designed to avoid exactly this kind of inefficiency since it's also meant to contain large sets of data.
We probably want an additional API that can deserialize only specific range from an encoded array. It's OK if we can only make it work for GVariant format.
unassigned @zeenix