simonvandel opened a new pull request, #14593: URL: https://github.com/apache/datafusion/pull/14593
## Which issue does this PR close? N/A ## Rationale for this change I haven't looked at the generated code, but i presume that using `try_unary` can lead to better vectorization. ## What changes are included in this PR? - Add benchmark for `date_trunc` - Prefer using `try_unary` over `iter`-`map` combo. ``` date_trunc_minute_1000 time: [12.745 µs 12.794 µs 12.849 µs] change: [-19.871% -19.544% -19.210%] (p = 0.00 < 0.05) Performance has improved. Found 1 outliers among 100 measurements (1.00%) 1 (1.00%) high mild ``` ## Are these changes tested? Using existing tests. ## Are there any user-facing changes? Faster `date_trunc` -- 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