tustvold commented on PR #2883:
URL: https://github.com/apache/arrow-rs/pull/2883#issuecomment-1279883442

   > The alignment check applies on the entire memory allocation not slices.
   
   The alignment of the entire memory allocation is irrelevant, we only care 
that that the buffers within it are correctly aligned. My memory is a bit 
fuzzy, but I seem to remember that the arrow specification goes to great 
lengths to document how data should be padded to guarantee alignment. This 
should mean that if the original buffer is aligned, and the padding is correct, 
data can be zero-copy sliced - otherwise we have to copy.


-- 
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