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

slow speed in write nc #642

Closed
kongdd opened this issue Apr 25, 2024 · 5 comments
Closed

slow speed in write nc #642

kongdd opened this issue Apr 25, 2024 · 5 comments

Comments

@kongdd
Copy link
Contributor

kongdd commented Apr 25, 2024

It costs about 80s to save a Raster with a dimension of 3600*1500 into nc with Rasters.jl.
While, in comparison, NCDatasets only costs 2s.

using Rasters
using NCDatasets

f = "./LAI_mean_Global_WHIT_2000-2023.nc"
@time ra = Raster(f, lazy=false)

@time write("temp.nc", ra; force=true)
@time write("temp.nc", ra; force=true)

# 105.611572 seconds (272.79 M allocations: 11.790 GiB, 1.76% gc time)
# 77.975531 seconds (272.79 M allocations: 11.790 GiB, 2.06% gc time)

LAI_mean_Global_WHIT_2000-2023.zip

@rafaqz
Copy link
Owner

rafaqz commented Apr 25, 2024

Should be fixed already on main

@kongdd
Copy link
Contributor Author

kongdd commented Apr 25, 2024

Any release plan for the latest version?

@rafaqz
Copy link
Owner

rafaqz commented Apr 25, 2024

We have a breaking change, so I'm trying to lump them all.

It will be released whenever I can get this passing:
#612

And also get up to date with DD again...

@rafaqz
Copy link
Owner

rafaqz commented Apr 25, 2024

Just work on main for now ;)

Hopefully before next week there will be a new version, but I've been thinking that for a month now so who knows

@rafaqz
Copy link
Owner

rafaqz commented Apr 29, 2024

0.11.0 is registered now

@rafaqz rafaqz closed this as completed Apr 29, 2024
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

2 participants