ryanvickr commented on PR #11027: URL: https://github.com/apache/arrow-rs/pull/11027#issuecomment-7409203664
Looks great so far! One suggestion worth testing alongside your benchmarks: Right now `unpack_block` is marked `#[inline(never)]` and called on every iteration of `unpack_blocks`. That hoists the jump table, but each block still pays for a call/ret, a per-block `input.len()` check, `vzeroupper` (on AVX2), and reloading constant SIMD masks from memory. If you instead move `#[inline(never)]` onto `unpack_blocks` and let `unpack` inline into the loop, LLVM hoists the SIMD masks out of the loop, drops the per-block bounds checks and `vzeroupper`, and unrolls across blocks. -- 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]
