For tools using the CLI this amount of delay feels excessive. Around 1s of this time is performing imports. Here's the import flame graph:
(0.1s on xarray.tutorial?!?)

I assume some of these could be imported only when they are needed - although given that many of the imports are referenced in typing specifications that might not be possible.
I'm not sure yet what the remaining 0.5s is - a cProfile callgraph is pretty useless on import but I think there is a way around that by profiling the individual sgkit files.
For tools using the CLI this amount of delay feels excessive. Around 1s of this time is performing imports. Here's the import flame graph:
(0.1s on
xarray.tutorial?!?)I assume some of these could be imported only when they are needed - although given that many of the imports are referenced in typing specifications that might not be possible.
I'm not sure yet what the remaining 0.5s is - a cProfile callgraph is pretty useless on import but I think there is a way around that by profiling the individual sgkit files.