Skip to content

REF: Avoid new object creation when reverse slicing when possible #57902

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 7 commits into from
Mar 20, 2024

Conversation

mroeschke
Copy link
Member

No description provided.

@mroeschke mroeschke added the Refactor Internal refactoring of code label Mar 18, 2024
@jbrockmendel
Copy link
Member

No objection but why? Is this a perf thing or a style thing?

@mroeschke
Copy link
Member Author

Just a minor perf thing; avoiding extra memory allocations where possible

@mroeschke mroeschke added this to the 3.0 milestone Mar 19, 2024
@mroeschke
Copy link
Member Author

Since tests are passing here going to merge.

@mroeschke mroeschke merged commit d23f95f into pandas-dev:main Mar 20, 2024
46 checks passed
@mroeschke mroeschke deleted the ref/reverse/iter branch March 20, 2024 16:41
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
…ndas-dev#57902)

* REF: Avoid new objects when reverse slicing when possible

* Adjust test

* Remove astypes

* Fix typing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants