Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make make_scalar_function() result candidate for inlining #81

Closed
wants to merge 0 commits into from
Closed

Make make_scalar_function() result candidate for inlining #81

wants to merge 0 commits into from

Conversation

findepi
Copy link

@findepi findepi commented Sep 15, 2024

make_scalar_function serves as a template to implement functions, abstracting away processing of scalar values. While make_scalar_function is a template function, it's not eligible for effective inlining because of the Arc<Fn> return type.

This commit removes Arc and unlocks inlining. The change impact was verified manually using on a similar make_scalar_function helper in DataFusion.

The change saves some small overhead on each invocation of a UDF, but doesn't improve per-row performance.

@findepi findepi closed this Sep 16, 2024
@findepi findepi deleted the findepi/make-make-scalar-function-result-candidate-for-inlining-5763b4 branch September 17, 2024 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant