felipecrv opened a new pull request, #43720:
URL: https://github.com/apache/arrow/pull/43720

   ### Rationale for this change
   
   More than once I've been confused about how the `SimdLevel` template 
parameters on these kernel classes affect dispatching of kernels based on SIMD 
support detection at runtime [1] given that nothing in the code changes based 
on the parameters.
   
   What matters is the compilation unit in which the templates are 
instantiated. Different compilation units get different compilation parameters. 
The SimdLevel parameters don't really affect the code that gets generated (!), 
they only serve as a way to avoid duplication of symbols in the compiled 
objects.
   
   This PR organizes the code to make this more explicit.
   
   [1] https://github.com/apache/arrow/pull/7871#issuecomment-2291615590
   
   ### What changes are included in this PR?
   
    - Introduction of aggregate_basic-inl.h
    - Moving of the impls in `aggregate_basic-inl.h` to an anonymous namespace
    - Grouping of code based on the function they implement (`Sum`, `Mean`, and 
`MinMax`)
   
   ### Are these changes tested?
   
   By the compilation process, existing tests, and benchmarks.
   


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