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
The current fix for #248 requires skips the elements by deserializing any skipped values. Figure out an alternative that avoids any unnecessary work. Ideas:
Add skip to the interface of the deserializers and implement a solution by shifting around the offsets
Implement random access deserialization
This will also allow to deserialize enums with holes or lists with null values with data
This would also allow to support lists with non-monotically increasing offsets (although such lists could be ill formed)
Potential design of RandomAccessDeserializer
traitRandomAccessDeserializer{/// Get the number of itemsfnlen(&self) -> usize;/// Deserialize the `i`-th item of this deserializer into the given typefnget<'de,T:Deserialize<'de>>(&'de self,i:usize) -> Result<T>;}structDeserializer{inner:StructDeserializer,next:usize,len:usize,}// impl Deserializer analogous to OuterSequenceDeserializer
The text was updated successfully, but these errors were encountered:
The current fix for #248 requires skips the elements by deserializing any skipped values. Figure out an alternative that avoids any unnecessary work. Ideas:
skip
to the interface of the deserializers and implement a solution by shifting around the offsetsPotential design of RandomAccessDeserializer
The text was updated successfully, but these errors were encountered: