alamb commented on issue #11212:
URL: https://github.com/apache/datafusion/issues/11212#issuecomment-2211096135

   I did some more looking into the idea of using `true_count` in boolean 
kernels in arrow to speed things up (e..g special casing when 
`BooleanArray::true_count` and `BooleanArray::row_count` were the same to avoid 
actually computing the binary result
   
   However, I concluded that since `BooleanArray::true_count` has to check all 
the values of the array anyways it might be nearly as fast to just do the 
binary operation (which is already quite fast) than to count the true/faslse 
values
   
   
https://docs.rs/arrow-array/52.0.0/src/arrow_array/array/boolean_array.rs.html#142


-- 
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...@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to