Skip to content

Conversation

@jbrockmendel
Copy link
Member

PERF: lookup ._name and ._mgr_locs instead of .name and .mgr_locs. The property lookups add up, e.g. mgr_locs is just shy of 2% of the benchmark discussed #40171 (comment)

@jreback jreback added the Internals Related to non-user accessible pandas implementation label Mar 15, 2021
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

lgtm.

@jreback jreback added this to the 1.3 milestone Mar 15, 2021

def _get_take_nd_function(
ndim: int, arr_dtype, out_dtype, axis: int = 0, mask_info=None
ndim: int, arr_dtype: np.dtype, out_dtype: np.dtype, axis: int = 0, mask_info=None
Copy link
Contributor

Choose a reason for hiding this comment

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

next pass can add Axis

@jreback jreback merged commit ae12817 into pandas-dev:master Mar 16, 2021
@jbrockmendel jbrockmendel deleted the perf-2 branch March 16, 2021 14:58
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Internals Related to non-user accessible pandas implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants