emg3d
emg3d copied to clipboard
Improve / monitor CLI load time
CLI load time
The load time of emg3d is somewhat slow. As the 3D computation is likely to take much longer, it is not that crucial. Yet it is still annoying for a simple, e.g., emg3d --help or emg3d --version.
The main culprits are
-
discretize, principally the load ofmatplotlib-> make it lazy loading! -
xarray-> check in their issues/PR's -
numba=> This should improve significantly withnumba v0.56.0 -
numpy,scipy.special(not much to do about) -
h5py-> make it lazy loading!
ToDo
- [ ] Try to bring down load time!
- [ ] Add a test monitoring the load time
Relevant links
- https://peps.python.org/pep-0690/
- https://scientific-python.org/specs/spec-0001/
Snapshots
emg3d v1.7.0, Date: Fri Jul 22 2022
