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

feat: External Contexts and simple EvmBuilder #888

Merged
merged 50 commits into from
Jan 12, 2024
Merged

feat: External Contexts and simple EvmBuilder #888

merged 50 commits into from
Jan 12, 2024

Conversation

rakita
Copy link
Member

@rakita rakita commented Nov 29, 2023

A lot of changes and Evm now contains just a Context and a Handler, context is divided into EvmContext and generic external context (Generic struct) and Handler contains a list of functions (handlers) that introduce logic.

EvmBuilder sets context and handler and allows creation of the Evm, where Evm is used in execution.

A few more handlers are added to Handler.

Precompile inner vec is replaced with HashSet as performance for 10 items is similar (the interesting thing is that linear search was faster than binary search for small numbers).

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