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

Refactor stateful precompile look ups to use binary search #29

Open
nddeluca opened this issue Apr 26, 2024 · 0 comments · May be fixed by #31
Open

Refactor stateful precompile look ups to use binary search #29

nddeluca opened this issue Apr 26, 2024 · 0 comments · May be fixed by #31

Comments

@nddeluca
Copy link
Member

Currently, when fetching a module from the registry, or searching the enabled list, we iterate in O(N) fashion.

For the registry all addresses are sorted, so we could use a binary search there.

For enabled precompiles, I'm unsure if a sorted list will always be passed.

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 a pull request may close this issue.

1 participant