wesm commented on PR #13661:
URL: https://github.com/apache/arrow/pull/13661#issuecomment-1191935397

   @save-buffer thanks for your comments
   
   > Change the code to use fewer templates and more raw for loops. If we're 
feeling really adventurous, we could write a Python or Jinja script that 
generates the kernels as the simplest possible for loop (I know this is the 
approach used in a lot of databases). I have never seen a problem with this 
style of code even on -O3.
   
   I agree also with this -- I know that some feel that manually generating 
code when you can have templates "do it for you" is an antipattern, but it 
seems at least that the code in compute/kernels/codegen_internal.h has gone a 
little too far introducing abstractions where we are putting too much blind 
faith in the compiler (e.g. the "OutputAdapter"). 
   
   Not a priority by any means among our myriad priorities but perhaps 
something for us to occasionally hack at in our idle moments (I did #13654 when 
I was bored on an airplane)


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