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

perf: ignore all storage of empty accounts #127

Merged
merged 8 commits into from
Dec 12, 2024
Merged

perf: ignore all storage of empty accounts #127

merged 8 commits into from
Dec 12, 2024

Conversation

Wollac
Copy link
Contributor

@Wollac Wollac commented Dec 11, 2024

If an account is empty (or non-existent, which is equivalent to EVM), the database may return None instead of the default empty account.
However, if the account is None, revm will not call storage() for any of its slots, as they must be zero. This has some small performance benefits as the storage_tries in the input data will be smaller.

@Wollac Wollac requested a review from hashcashier December 11, 2024 16:59
Base automatically changed from perf/contract-code to main December 12, 2024 17:58
@Wollac Wollac merged commit 9ae3488 into main Dec 12, 2024
7 checks passed
@Wollac Wollac deleted the perf/empty-account branch December 12, 2024 20:02
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.

2 participants