Skip to content

PERF: avoid unnecessary check in concat #52535

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 1 commit into from
Apr 8, 2023

Conversation

jbrockmendel
Copy link
Member

indexers[0] never has negative entries, so needs_filling is always False, so dtype always matches block.dtype.

@phofl phofl added Performance Memory or execution speed performance Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Apr 8, 2023
@phofl phofl added this to the 2.1 milestone Apr 8, 2023
@phofl phofl merged commit d88f8bf into pandas-dev:main Apr 8, 2023
@phofl
Copy link
Member

phofl commented Apr 8, 2023

thx @jbrockmendel

@jbrockmendel jbrockmendel deleted the perf-concat-2 branch April 8, 2023 15:52
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 Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants