Skip to content
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

Reduce memory usage when computing an array with missing data #302

Open
Cadair opened this issue Oct 6, 2023 · 0 comments
Open

Reduce memory usage when computing an array with missing data #302

Cadair opened this issue Oct 6, 2023 · 0 comments

Comments

@Cadair
Copy link
Member

Cadair commented Oct 6, 2023

As of #301 we return a numpy array when data is missing, to prevent a situation where when you computed the array you got a dask array back.
However, the upshot of this is that dask appears to un-broadcast the array, so you require the full memory allocation of the array to compute an array with no data in it.
This is very inefficient.

We should see if there is a way to generate a dask array which uses much less memory for some or all NaNs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant