mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
4ccebf25b5
The var struct has a 'dim' field which was not being used Instead, the dimids field would always search for the dim with the matching dimid. For db with large numbers of dims, this could be a significant time sync. Modified code to always set var-dim[i] when var->dimids[i] was set (if the dim existed at that point). Then use the var->dim field instead of var->dimids and search whenever requested. All var->dim accesses are protected by asserts that verify non-null and that the var->dim[]->dimid == var->dimids[]. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
error4.c | ||
Makefile.am | ||
nc3stub.c | ||
nc3stub.h | ||
nc4attr.c | ||
nc4dim.c | ||
nc4dispatch.c | ||
nc4dispatch.h | ||
nc4file.c | ||
nc4grp.c | ||
nc4hdf.c | ||
nc4internal.c | ||
nc4type.c | ||
nc4var.c | ||
ncfunc.c | ||
stub3.c | ||
stub4.c |