Skip to content

PERF: make DTA/TDA/PA _ndarray the attribute, _data the property #40007

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

Merged
merged 2 commits into from
Feb 24, 2021

Conversation

jbrockmendel
Copy link
Member

the difference isnt huge, but we do access _ndarray in a lot of places so it adds up

@jreback jreback added Index Related to the Index class or subclasses Performance Memory or execution speed performance labels Feb 24, 2021
@jreback jreback added this to the 1.3 milestone Feb 24, 2021
@jreback jreback merged commit 8ceec8b into pandas-dev:master Feb 24, 2021
@@ -253,9 +253,24 @@ def _check_compatible_with(
# ------------------------------------------------------------------
# NDArrayBackedExtensionArray compat

def __setstate__(self, state):
if isinstance(state, dict):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woa, but ok. can we create an issue to track when we should remove things like this (e.g. call it pickle compatibility and point to this PR). will be a while for sure, but should track.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure. yah, pickle backwards compat is a PITA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Index Related to the Index class or subclasses Performance Memory or execution speed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants