Delay numpy, xarray, and matplotlib imports
These tend to use up most of the module import time but are only really needed at a later point… and/or PlotManager
.
The xarray import actually occurs via paramspace currently, so there are two places at which this would need to be delayed: in paramspace itself (addressed here) and in the modules using xarray features.
To recreate the profile, install tuna
via pip and do:
python -X importtime -c "import dantro" 2> dantro_importtime.log
tuna dantro_importtime.log
Edited by Utopia Developers