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

Implement lazy read of some var metadata to speed file opens #1260

Closed

Conversation

edhartnett
Copy link
Contributor

@edhartnett edhartnett commented Dec 18, 2018

Fixes #857.

Lazy reading of vars is harder than lazy reading of atts. However, in this PR, some of the var metadata is read as a lazy read.

This saves time on file open, and saves time overall for the user if vars are never accessed.

In order to support the netCDF model, full lazy read is not attempted. Vars are read, dimension and type information are read for each dataset, all at open. However, other metadata, like cache settings and fill value, are only read for vars when necessary.

This PR is tested and ready to merge.

@edhartnett
Copy link
Contributor Author

Here's some results of recent speed improvements:

netcdf-4 file open times

@edhartnett
Copy link
Contributor Author

@WardF this one is ready to merge. It will improve performance at file opens.

@edhartnett
Copy link
Contributor Author

@WardF can this be merged soon? Thanks!

@edhartnett edhartnett closed this Jan 17, 2019
@edhartnett edhartnett deleted the ejh_fast_var branch February 16, 2019 17:11
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

Successfully merging this pull request may close these issues.

1 participant