Skip to content

Remove GIL from take_2d_axis_0 #54483

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 2 commits into from
Aug 11, 2023
Merged

Remove GIL from take_2d_axis_0 #54483

merged 2 commits into from
Aug 11, 2023

Conversation

phofl
Copy link
Member

@phofl phofl commented Aug 10, 2023

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

This came up, we should get rid of the Gil here

@phofl phofl requested a review from WillAyd as a code owner August 10, 2023 13:27
@phofl phofl added this to the 2.1 milestone Aug 10, 2023
@phofl phofl added the Internals Related to non-user accessible pandas implementation label Aug 10, 2023
else:
for j in range(k):
out[i, j] = values[idx, j]
return
Copy link
Member

@jorisvandenbossche jorisvandenbossche Aug 10, 2023

Choose a reason for hiding this comment

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

Small nitpick, but is this return actually needed now? Since all the remaining code is in the {{else}} templated block that doesn't exist in this variant, and so we are at the end of the function anyway?

Copy link
Member Author

@phofl phofl Aug 10, 2023

Choose a reason for hiding this comment

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

fair, removed

@phofl phofl merged commit 5122e68 into pandas-dev:main Aug 11, 2023
@phofl phofl deleted the gil branch August 11, 2023 07:25
@jbrockmendel
Copy link
Member

nice!

mroeschke pushed a commit to mroeschke/pandas that referenced this pull request Aug 18, 2023
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.

3 participants