Skip to content

Conversation

jbrockmendel
Copy link
Member

This implements BlockManager._get_data_subset (which ArrayManager already has) to avoid making a copy in a DataFrame.__getitem__ usage inside DataFrame._reduce.

This path is deprecated so this snippet will be removed in 2.0.

@jreback jreback added this to the 1.4 milestone Jun 25, 2021
@jreback jreback added the Performance Memory or execution speed performance label Jun 25, 2021
@jreback
Copy link
Contributor

jreback commented Jun 25, 2021

can you point to the benchmarks which change ?

@jbrockmendel
Copy link
Member Author

Not aimed at any benchmarks in particular, i just have a note to self to avoid a copy here.

@jreback jreback merged commit fa0052e into pandas-dev:master Jun 25, 2021
@jbrockmendel jbrockmendel deleted the perf-reduce branch June 25, 2021 22:15
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

Performance Memory or execution speed performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants