tustvold opened a new issue, #2188:
URL: https://github.com/apache/arrow-rs/issues/2188

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   
   A number of the ArrayData equality comparisons have code along the lines of
   
   ```
   let lhs_null_count = count_nulls(lhs.null_buffer(), lhs_start + 
lhs.offset(), len);
   let rhs_null_count = count_nulls(rhs.null_buffer(), rhs_start + 
rhs.offset(), len);
   
   if lhs_null_count == 0 && rhs_null_count == 0 {
     // Optimised path that ignores nulls
   }
   ```
   
   These kernels aren't actually interested in the null count, purely if there 
are any nulls. It stands to reason this question can be answered more 
efficiently than computing the actual null count
   
   **Describe the solution you'd like**
   
   A solution that simply looks for the first 0 bit in the provided mask
   
   **Describe alternatives you've considered**
   
   **Additional context**
   
   


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