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

add state cache for read/write/remove #1770

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chengzhinei
Copy link

cache the state during exec, and handle them together after exec has been done.

csdb optimize
@webmaster128
Copy link
Member

webmaster128 commented Aug 21, 2023

Interesting approach. But I wonder why you do multiple writes to the same storage element during the contract execution. Can't you just write once at the end of the execute? This is what most contract do that I am aware of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants