-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Slow validation function blocking asyncio #2928
Labels
Comments
Hello, @menaitm, I think there are several possible options: you can try to write a faster algorithm that, for example, will use bit operations instead of calculating a hash function, or you can add a parameter to the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What was wrong?
After profiling my asyncio application, 2.5% of the event loop blocking is coming from the
validate_address
function in web3py:https://github.com/ethereum/web3.py/blob/v6.2.0/web3/_utils/validation.py#L160
Inside this function,
is_checksum_address()
is the slowest call.How can it be fixed?
Can the library provide flags to enable/disable expensive validation methods like this?
The text was updated successfully, but these errors were encountered: