Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MAINT: Improve import time: Avoid importing secrets #14094

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
wants to merge 1 commit into from

Conversation

hmaarrfk
Copy link
Contributor

@hmaarrfk hmaarrfk commented Jul 24, 2019

This is admittedly a really small gain.
I think it only avoid the import of hashlib.

Feel free to just shut this one down if it isn't worth your keystrokes.

I think the gain here is on the order of 1ms. Hard to measure.

It avoid the import of hashlib and hmac

image

@charris charris changed the title MNT: imporve import time: Avoid importing secrets MAINT: imporve import time: Avoid importing secrets Jul 25, 2019
@charris charris changed the title MAINT: imporve import time: Avoid importing secrets MAINT: Improve import time: Avoid importing secrets Jul 25, 2019
@charris
Copy link
Member

charris commented Jul 25, 2019

I don't think 1ms is worth it. Are the two options the same? Note that we will be dropping Python 3.5 when 3.8 comes out.

@hmaarrfk
Copy link
Contributor Author

yeah, probably not, especially since I like that we are explicit about wanting a "secure" random number generator.

@hmaarrfk hmaarrfk closed this Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants