Skip to content

feat: ETH_UTILS_NOVALIDATE env var for optimized prod use cases #304

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

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

Conversation

BobTheBuidler
Copy link

@BobTheBuidler BobTheBuidler commented Apr 30, 2025

What was wrong?

I was profiling my production app and noticed that quite a lot of time is spent inside the helper functions for validate_conversion_arguments. While that decorator is very useful for development, it would be beneficial to optionally bypass it for production use cases where the developer is confident they coded their interactions with eth_utils correctly.

For this, I have this 2-liner PR that will check if the ETH_UTILS_NOVALIDATE env var is set to any value. If it is, validate_conversion_arguments will be bypasses and the original input function will be returned.

Related to Issue # N/A
Closes # N/A

How was it fixed?

Todo:

  • Clean up commit history
  • Add or update documentation related to these changes
  • Add entry to the release notes

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

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.

1 participant