html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/6726#issuecomment-1265717585,https://api.github.com/repos/pydata/xarray/issues/6726,1265717585,IC_kwDOAMm_X85LcVFR,2448579,2022-10-03T16:27:42Z,2022-10-03T16:27:42Z,MEMBER,"> his could be replaced by importlib.util.find_spec.
Nice. Does it work on python 3.8?
> However, many backends also check for ImportErrors (not ModuleNotFoundError) that occur when a library is not correctly installed. I am not sure if in this case the backend should simply be disabled like it is now (At least cfgrib is raising a warning instead)?
> Would it be a problem if this error is only appearing when actually trying to open a file
Sounds OK to error when trying to use the backend.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1284475176
https://github.com/pydata/xarray/issues/6726#issuecomment-1200279262,https://api.github.com/repos/pydata/xarray/issues/6726,1200279262,IC_kwDOAMm_X85His7e,10194086,2022-07-30T19:12:06Z,2022-07-30T19:12:20Z,MEMBER,"I just had another look at this using
```bash
python -X importtime -c ""import llvmlite"" 2> import.log
```
and [tuna](https://github.com/nschloe/tuna) for the visualization.
- pseudoNETCDF adds quite some overhead, but I think only few people have this installed (could be made faster, but not sure if worth it)
- llmvlite (required by numba) seems the last dependency relying on pkg_resources but this is fixed in the new version which [should be out soonish](https://github.com/conda-forge/llvmlite-feedstock/pull/62)
- dask recently merged a PR that avoids a slow import dask/dask/pull/9230 (from which we should profit)
This should bring it down a bit by another 0.25 s, but I agree it would be nice to have it even lower.
","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1284475176
https://github.com/pydata/xarray/issues/6726#issuecomment-1166307431,https://api.github.com/repos/pydata/xarray/issues/6726,1166307431,IC_kwDOAMm_X85FhHBn,10194086,2022-06-25T15:10:03Z,2022-06-25T15:10:03Z,MEMBER,"Thanks for the report. I think one resaon is that we import all the io libraries non-lazy (I think since the backend refactor). And many of the dependecies still use pkg_resources instead of importlib.metadata (which is considetably slower).
We'd need to take a look at the lazy loader. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1284475176