-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Description
pandas is really slow to import, importing this library can add seconds to a program's startup time, which can be critical for unittest and CLI programs that needs fast startup time.
To reproduce:
- Setup new virtualenv (optional)
- Install pandas and pyfakefs into your virtualenv
- Time
python -c "import pyfakefs.fakefilesysem_unittest" - Compare timing with another virtualenv where
pandasis not installed
Expected behaviour:
pyfakefs should only import pandas or other libraries that it monkey patch, if the main application is already importing them. Just having the library installed in the system packages shouldn't cause pyfakefs to assume that the library is going to be used by the currently running application.
Metadata
Metadata
Assignees
Labels
No labels