Skip to content

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