vojtechtoman opened a new pull request, #9600:
URL: https://github.com/apache/arrow-datafusion/pull/9600

   ## Which issue does this PR close?
   
   Closes #9089.
   
   ## What changes are included in this PR?
   
   This PR introduces further optimizations in `make_date`:
   
   - replace the expensive calculation of `unix_days_from_ce` with a constant
   - do not use `PrimitiveArray` builder for the scalar case
   
   ## Are these changes tested?
   
   No new tests needed (no changes to functionality, all covered by existing 
tests).
   
   Performance is tracked by existing benchmarks for `make_date`. Compared to 
the previous implementation, this PR shows (on my machine) about 10% 
improvement for the cases involving arrays and about 20% for the scalars-only 
case.
   
   ## Are there any user-facing changes?
   
   N/A
   


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