felipecrv opened a new issue, #41020:
URL: https://github.com/apache/arrow/issues/41020

   ### Describe the enhancement requested
   
   Compiler assumptions (standardized in C++23) [1] are supported in today's 
compilers via macros.
   
   When used well they can hint the optimizer in ways that can improve 
performance, but more importantly, reduce binary-size in compute kernel loops 
that have to be specialized for many different types [2]
   
   Like other features compiler features, this could become usable via a macro 
in `macros.h`.
   
   [1] https://en.cppreference.com/w/cpp/language/attributes/assume
   [2] While working on a refactoring of `Take` I was able to shave-off 
~13Kbytes off `compute/kernels/vector_selection_take_internal.cc.o` on macOS.
   
   ### Component(s)
   
   C++


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