-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
speedup attribute style access and tab completion #4742
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
Conversation
mathause
left a comment
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 |
dcherian
left a comment
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
shoyer
left a comment
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 . && flake8User visible changes (including notable bug fixes) are documented in
whats-new.rstmake _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