You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2024/01/31 20:35:10 UTC

[I] Optimize `make_date` [arrow-datafusion]

alamb opened a new issue, #9089:
URL: https://github.com/apache/arrow-datafusion/issues/9089

   ### Is your feature request related to a problem or challenge?
   
   I think there is significant performance to be had when creating dates and now thanks to @Omega359  there are benchmarks
   
   To run the benchmarks, do:
   ```shell
   cargo bench --bench make_date
   ```
   
   ### Describe the solution you'd like
   
   Make  the function faster, as defined by the command above
   
   The high level procedure for this is to profile the function and figure out how to make it go faster while still computing the same results
   
   ### Describe alternatives you've considered
   
   It may not be possible to make this faster and in that case no worries.
   
   ### Additional context
   
   I think this is actually a pretty good initial project for someone because 
   1. The code is relatively straightforward
   2. The benchmark is in place
   
   
   


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

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


Re: [I] Optimize `make_date` [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #9089:
URL: https://github.com/apache/arrow-datafusion/issues/9089#issuecomment-1995383510

   Thank you @vojtechtoman  -- very exciting


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

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


Re: [I] Optimize `make_date` [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #9089:
URL: https://github.com/apache/arrow-datafusion/issues/9089#issuecomment-1921803463

   Sounds pretty great to me -- thanks @r3stl355 


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

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


Re: [I] Optimize `make_date` [arrow-datafusion]

Posted by "r3stl355 (via GitHub)" <gi...@apache.org>.
r3stl355 commented on issue #9089:
URL: https://github.com/apache/arrow-datafusion/issues/9089#issuecomment-1921593461

   A quick experiment replacing `value_fn` with pre-computed arrays shows about 50% improvement for benchmarks using columns but about 20% regression for scalar only benchmark (I think I should be able to get that scalar version back to baseline). If you think this is significant I can carry on working on it


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

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


Re: [I] Optimize `make_date` [arrow-datafusion]

Posted by "Omega359 (via GitHub)" <gi...@apache.org>.
Omega359 commented on issue #9089:
URL: https://github.com/apache/arrow-datafusion/issues/9089#issuecomment-1987260631

   I think with #9112 this issue could be closed @alamb  ?


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

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


Re: [I] Optimize `make_date` [arrow-datafusion]

Posted by "vojtechtoman (via GitHub)" <gi...@apache.org>.
vojtechtoman commented on issue #9089:
URL: https://github.com/apache/arrow-datafusion/issues/9089#issuecomment-1994675645

   @alamb I was looking at this out of interest and I just noticed that this issue has been closed in the meantime. I introduced some further improvements in https://github.com/apache/arrow-datafusion/pull/9600 which lead to about 10% performance gain for the cases involving arrays and about 20% for the scalars-only case.


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

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


Re: [I] Optimize `make_date` [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #9089: Optimize `make_date`
URL: https://github.com/apache/arrow-datafusion/issues/9089


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

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


Re: [I] Optimize `make_date` [arrow-datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #9089:
URL: https://github.com/apache/arrow-datafusion/issues/9089#issuecomment-1988391795

   > I think with #9112 this issue could be closed @alamb ?
   
   I agree -- thank you for the ping


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

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