Skip to content

REF: Use more cython memoryviews #58271

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 10 commits into from
Apr 17, 2024
Merged

Conversation

mroeschke
Copy link
Member

Also addresses some # TODO(cython3) comments

@mroeschke mroeschke added Refactor Internal refactoring of code Internals Related to non-user accessible pandas implementation labels Apr 16, 2024
@mroeschke mroeschke requested a review from WillAyd as a code owner April 16, 2024 00:29
Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

Looks good. No performance regressions right? I can't remember what the difference is between arrays / memoryviews but I vaguely recall a common attribute access that Cython would make a C-level access into a Python access when switching from arrays to memviews

@mroeschke mroeschke force-pushed the ref/cython3changes branch from 19ceb2e to c5131ab Compare April 17, 2024 16:54
@mroeschke
Copy link
Member Author

No performance regressions right?

Running the ASVs locally show no performance impacts.

@mroeschke mroeschke added this to the 3.0 milestone Apr 17, 2024
@mroeschke mroeschke merged commit 86e807d into pandas-dev:main Apr 17, 2024
45 of 46 checks passed
@mroeschke mroeschke deleted the ref/cython3changes branch April 17, 2024 19:03
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
* fix some cython 3 todos

* Another memoryview

* Add another memoryview

* Use more memoryview

* another memoryview

* more memoryview syntax in groupby

* Add a few more memoryviews

* Use Py_ssize_t
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 Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants