jhorstmann commented on issue #614:
URL: https://github.com/apache/arrow-rs/issues/614#issuecomment-886259653


   Not really familiar with that code, but there is a FIXME comment about the 
alignment after pointer casts here: 
https://github.com/apache/arrow-rs/blob/1d6c37452f74a6443d269d0bdfc2c3738130fd5e/parquet/src/util/bit_util.rs#L556
   
   If the alignment can't be guaranteed to be valid for u32, one possible 
solution could be to replace all `*in_buf` in bit_packing.rs with 
`std::ptr::read_unaligned(in_buf)`. On x86 that would not have any performance 
impact.


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