Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimized StorageMap #89

Merged
merged 15 commits into from
Aug 27, 2019
Merged

Conversation

shargon
Copy link
Member

@shargon shargon commented Aug 21, 2019

Close #88

@shargon shargon requested a review from erikzhang August 23, 2019 13:34
@shargon
Copy link
Member Author

shargon commented Aug 25, 2019

As @erikzhang said, changes was required for byte to byte[] conversion, also was upgraded the TestEngine for allow to test the storage access, useful for the NEP5 template tests

#90

erikzhang
erikzhang previously approved these changes Aug 26, 2019
@shargon
Copy link
Member Author

shargon commented Aug 26, 2019

I changed the unit test to not send the prefix as an argument because it is more real, the byte is considered as an integer, so 0x00 is added at the end.

};
}

public static StorageMap CreateMap(this StorageContext context, byte prefix)
Copy link
Member Author

@shargon shargon Aug 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't find an optimized version of the conversion from byte to byte array inside the VM, should we remove this method?

@shargon shargon requested a review from erikzhang August 27, 2019 11:23
@shargon shargon merged commit 20b2391 into neo-project:master Aug 27, 2019
@shargon shargon deleted the improve-create-map branch August 27, 2019 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

StorageMap optimizations
2 participants