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

[2x] Optimize GetStateRootsPayload #1955

Merged

Conversation

shargon
Copy link
Member

@shargon shargon commented Sep 24, 2020

foreach (StateRootsPayload pl in StateRootsPayload.Create(state_roots))
will never be more than 2k , so we can create the payload directly and avoid a lot of linq sentences

ZhangTao1596
ZhangTao1596 previously approved these changes Sep 24, 2020
@ZhangTao1596
Copy link
Contributor

@shargon Can you resolve the confict?

superboyiii
superboyiii previously approved these changes Sep 27, 2020
@shargon
Copy link
Member Author

shargon commented Sep 27, 2020

@KickSeason done

@superboyiii
Copy link
Member

@erikzhang Need your approve.

@erikzhang erikzhang merged commit 597bd5c into neo-project:master-2.x Sep 27, 2020
@shargon shargon deleted the optimize-OnGetStateRootsReceived branch September 27, 2020 10:30
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.

4 participants