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

crazy number of allocations on file read #273

Open
tiemvanderdeure opened this issue Jan 8, 2025 · 0 comments
Open

crazy number of allocations on file read #273

tiemvanderdeure opened this issue Jan 8, 2025 · 0 comments

Comments

@tiemvanderdeure
Copy link

I'm trying to read the E-OBS weather dataset and reading in the data is extremely slow and generates millions of allocations.

For this file I am getting:

ds = NCDataset(path)
@time ds["hu"][:,:,1:20];

0.800117 seconds (8.29 M allocations: 182.748 MiB, 26.05% gc time)

There seems to be some type instability in CFtransformdata! in CommonDataModel, but just nc_get_vars! also takes half the time.

This is on NCDatasets 0.14.6 and CommonDataModel 0.3.7

image

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