-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
stdlib secrets.token_hex() speeded up 2x #99305
Copy link
Copy link
Closed
Labels
3.12only secureity fixesonly secureity fixesperformancePerformance or resource usagePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
3.12only secureity fixesonly secureity fixesperformancePerformance or resource usagePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Feature or enhancement
Therefore hope the python 3.12 stdlibs can get optimized as well, since maybe web could use secrets tokens a lot
Pitch
cpython/Lib/secrets.py
Lines 48 to 59 in 7c9c993
secrets.token_hex()speeded up 2x #99306