near / borsh

Binary Object Representation Serializer for Hashing
https://borsh.io/
487 stars 41 forks source link

Optimize borsh deserialization of Vec<T> #60

Closed evgenykuzyakov closed 4 years ago

evgenykuzyakov commented 4 years ago

Vec seems to take too much gas. An easy optimization can be Vec implementation with buffered read similar to strings, but it's unclear how to handle non fixed size types, e.g. Vec

evgenykuzyakov commented 4 years ago

Improved in #58