neilconway opened a new pull request, #21847:
URL: https://github.com/apache/datafusion/pull/21847

   ## Which issue does this PR close?
   
   - Closes #21846.
   
   ## Rationale for this change
   
   Optimize `chr` by avoiding per-row NULL bitmap maintenance, and also split 
the hot loop to avoid taking a branch when no NULL bitmap is given.
   
   Benchmarks:
   
   ```
   `chr/array`: 3.8768 µs → 3.1548 µs, −18.57% (`p < 0.05`)
   ```
   
   ## What changes are included in this PR?
   
   * Optimize `chr` to reduce NULL-handling overhead
   
   ## Are these changes tested?
   
   Yes.
   
   ## Are there any user-facing changes?
   
   No.
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to