Reduce length-prepending in BFieldCodec
encoding through the use of Cursor
#122
Labels
BFieldCodec
encoding through the use of Cursor
#122
By using a
Cursor
data struct, I think we can avoid the prepending of the struct length when encoding bothVec<T>
and[T; N]
. Each element is double length prepended since the length prepending happens in both the encoding implementation forVec<T>
andT
when the encoding length is not known at compile time.I think this can be avoided if we use a type of
Cursor<Vec<BFieldElement>>
for the decoding process.The text was updated successfully, but these errors were encountered: