Skip to content

Conversation

@gregory-shklover
Copy link

@gregory-shklover gregory-shklover commented Feb 24, 2025

Wrapped around default SSL context initialization to potentially speed up "import requests" time.

Measurements:

original

$ time python -c "import requests"
real 0m0.936s
user 0m0.000s
sys 0m0.047s

modified:

$ time python -c "import requests"
real 0m0.351s
user 0m0.000s
sys 0m0.047s

@nateprewitt
Copy link
Member

Resolving as this is no longer relevant with #6767.

@gregory-shklover gregory-shklover deleted the gshklove_import branch June 14, 2025 09:19
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.

2 participants