-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
PERF: ArrowExtensionArray.fillna when array does not contains any nulls #51635
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
Conversation
Could you test this on #51411 as well? This should address the problem for CoW |
Performance, we are avoiding the copy on the block level there |
actually, what is the expected behavior for COW wrt pyarrow? Since arrow arrays are immutable,
|
CoW handles the copies globally on the block level, hence we can remove the check above. You can adjust the tests, eas made to many defensive copies without CoW, you got rid of one of them, which is a good thing |
Ok will do. Is the comment you added still relevant? ( I would think this fastpath can still apply after CoW is the default (e.g. for whatever reason CoW is not being used) |
We are not planning on having a non CoW mode when CoW is the default |
Merge when ready @phofl |
Could you rebase @lukemanley |
Thanks @lukemanley |
doc/source/whatsnew/v2.1.0.rst
file if fixing a bug or adding a new feature.