For simplicity, the UgridRolesAccessor currently rederives everything for attribute access.
|
class UgridRolesAccessor: |
There is probably some case where this is undesirable, e.g. datasets with thousands of variables where it might slow things down considerably. Caching it should be relatively straightforward, so it's worth investigating briefly.
For simplicity, the UgridRolesAccessor currently rederives everything for attribute access.
xugrid/xugrid/ugrid/conventions.py
Line 454 in 2fa8c57
There is probably some case where this is undesirable, e.g. datasets with thousands of variables where it might slow things down considerably. Caching it should be relatively straightforward, so it's worth investigating briefly.