-
Notifications
You must be signed in to change notification settings - Fork 20
Import dask and cubed only once #457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Nice, thanks. Looks like there's one more mypy thing to fix. I'm happy to immediately release once that is fixed.
I'm curious to learn if you've found other things. I spent quite some time optimizing this stuff a couple of years ago. |
On my local system mypy is giving different output, so I am doing a bit of trial and error here.
Not something specific. Our use case has relatively small arrays, maybe the optimizations have been tested on larger datasets?
On my system a single call to |
We recently found a performance bottleneck in the xarray groupby method. Part of the bottleneck was repeated attempted imports of cubed. In this PR we refactor the code to import
cubed
anddask
only once.