Skip to content

Make typeguard toggleable to increase speed #229

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

Closed
juliusfrost opened this issue Apr 26, 2023 · 0 comments · Fixed by #230
Closed

Make typeguard toggleable to increase speed #229

juliusfrost opened this issue Apr 26, 2023 · 0 comments · Fixed by #230
Labels
enhancement New feature or request

Comments

@juliusfrost
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Although typeguard is useful when initial debugging, it can slow down heavy use of pycardano. When I remove typeguard, I get almost 2x increase in speed. I would like there to be an option to turn off typegaurd type checking.

Describe the solution you'd like
Create a flag or environment variable that turns off typeguard.

Describe alternatives you've considered
N/A

Additional context
I'm trying to increase the speed of my hypothesis tests: OpShin/opshin-pioneer-program#43

@cffls cffls added the enhancement New feature or request label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants