emg3d icon indicating copy to clipboard operation
emg3d copied to clipboard

Improve / monitor CLI load time

Open prisae opened this issue 3 years ago • 0 comments

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 of matplotlib -> make it lazy loading!
  • xarray -> check in their issues/PR's
  • numba => This should improve significantly with numba 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

2022-07-22-01

prisae avatar Jul 22 '22 09:07 prisae