Skip to content

StorageItem: optimize binary representation#2379

Merged
shargon merged 2 commits intoneo-project:masterfrom
roman-khimov:storage-item-optimization
Mar 8, 2021
Merged

StorageItem: optimize binary representation#2379
shargon merged 2 commits intoneo-project:masterfrom
roman-khimov:storage-item-optimization

Conversation

@roman-khimov
Copy link
Contributor

After #2351 StorageItem is just a thin wrapper for some byte array in its
essence so we can Use the same trick as was used for storage keys in #1566 and
avoid additional wrapping/unwrapping with VarBytes encoding.

After neo-project#2351 StorageItem is just a thin wrapper for some byte array in its
essence so we can Use the same trick as was used for storage keys in neo-project#1566 and
avoid additional wrapping/unwrapping with VarBytes encoding.
@roman-khimov
Copy link
Contributor Author

It also technically allows to do item serialization without intermediate Value buffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants