-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
speedup attribute style access and tab completion #4742
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (as far as I understand it)
Looks great, thanks @rhkleijn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using _coords
and _coord_names
should improve performance a little more
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work!
Thanks @rhkleijn! |
Closes Attribute style access is slow #4741
Passes
isort . && black . && mypy . && flake8
User visible changes (including notable bug fixes) are documented in
whats-new.rst
make _attr_sources and _item_sources lazy
make lookup of virtual dimension coordinates lazy
make helper class more general so it can be used for lookup of both virtual dimension and level coordinates