-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Python Drivers
-
Not Needed
-
Optimize pymongo import time. For example if pymongo-auth-aws is installed pymongo will automatically import it even if the client does not use MONGODB-AWS auth. Importing pymongo-auth-aws takes 476ms on my machine because it depends on boto3 which takes 475ms.
A similar story is likely with our other optional dependencies: https://pymongo.readthedocs.io/en/latest/installation.html#optional-dependencies
I noticed this while looking at https://www.mongodb.com/community/forums/t/pymongo-lib-import-is-slow/269968
- causes
-
PYTHON-4424 Failure releated to compiled lazy import
- Closed
- is related to
-
PYTHON-4455 Pymongo import is extremely slow on windows
- Closed