aboderinsamuel commented on PR #50203:
URL: https://github.com/apache/arrow/pull/50203#issuecomment-4809977556

   @rok I'd keep PyArray_Ravel here. It's a zero-copy reshape of the 
already-C-contiguous array, and it gives the 1-D array that the dtype-mismatch 
fallback (value_converter_->Extend, just below) needs to iterate element-wise. 
Reading PyArray_DATA directly works for the typed fast path, but the fallback 
would still need a 1-D handle either way, so the ravel keeps a single shared 
path with no extra copy. Happy to switch if you'd prefer, but I'd lean to 
keeping it as-is.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to