cyb70289 commented on pull request #10846:
URL: https://github.com/apache/arrow/pull/10846#issuecomment-890291119


   Do you have benchmark results showing this code is faster than original one?
   Compilers are pretty smart in optimizing these common code patterns. Without 
solid benchmark data, I would prefer simpler code.
   
   Disassembler shows the dumb `if else` actually generates almost same code as 
this bithack trick. Modern CPUs all have `conditional move` instructions to 
remove trivial branches.
   https://godbolt.org/z/fqzs7rGev


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to