Skip to content
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

Fix performance regression in array transfer performance #3814

Conversation

jeremiah-corrado
Copy link
Contributor

Fix a recent regression in array transfer performance caused by an extra array copy added here.

The copy was included to ensure the array data are properly transposed on the server side following a shallow numpy transpose (where the buffer remains the same and an array-metadata flag is set to indicate that the array was transposed). The change fixed #3757, but added overhead. This PR only makes the extra copy for the shallow-transpose case, which should restore performance for the common case.

Copy link
Contributor

@ajpotts ajpotts left a comment

Choose a reason for hiding this comment

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

This is awesome. Thanks for fixing this!

@bmcdonald3 bmcdonald3 added this pull request to the merge queue Oct 7, 2024
Merged via the queue into Bears-R-Us:master with commit baa9ccc Oct 7, 2024
11 checks passed
@jeremiah-corrado jeremiah-corrado deleted the fix-array-trasfer-perf-regression branch October 7, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ak.array gives unexpected results on a transposed numpy multi-dimensional array.
3 participants