-
Notifications
You must be signed in to change notification settings - Fork 262
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
Possible enhancement: hashmap for fast dim and var query by name #234
Comments
This was addressed in the recent pull request I believe; closing out unless I hear different. |
The recent pull request was for nc3 files; the above discussion is for nc4 (netcdf-4) files. |
So it is; I glanced over it when I should have read it more carefully. |
I think this is a good idea and I like the changes in your PR. I am amazed that linked lists should be so much slower. Especially for small numbers of variables. |
This issue is to continue some discussion started in pull request #229 related to the addition of a hashmap to speed up dim and var query by name.
A few more observations:
next_dimid
field in theNC_HDF5_FILE_INFO_T
struct.NC_HDF5_FILE_INFO_T
struct instead of storing them using the doubly-linked list stored on the group.nvars
field in theNC_GRP_INFO_T
struct.I have a prototype hashmap usage for nc3 files that is currently passing all tests. It would need some cleanup for general use, but wanted to see how doable it was. It basically provides a quick lookup of dimid or varid from a name and then the dimid or varid to dim or var is a quick lookup based on the dimarray and vararray that nc3 files use. I hope to extend this to nc4 files, but not sure when will get a chance.
The text was updated successfully, but these errors were encountered: