-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
Closed as not planned
Labels
Feature Requestactions/autoclose-featUsed for automation to auto-close an issueUsed for automation to auto-close an issue
Description
Requests is not accepting feature requests at this time.
In requests/adapters.py there is initialization for _preloaded_ssl_context in global scope.
In corporate environment this operation consumes significant portion of the "import requests" time.
Wrapping this initialization into a function that is called where this context is actually needed would eliminate the overhead.
Estimates based on my machine:
original:
$ time python -c 'import requests'
real 0m0.918s
...
with a function wrapper:
$ time python -c 'import requests'
real 0m0.356s
...
Metadata
Metadata
Assignees
Labels
Feature Requestactions/autoclose-featUsed for automation to auto-close an issueUsed for automation to auto-close an issue