Skip to content

Optimize allocation rate for int64 array in hex function #16483

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Fly-Style
Copy link
Contributor

Which issue does this PR close?

Comment from #15947 regarding potentially optimized memory usage #15947 (comment)

Rationale for this change

iter().map(...).collect() introduces intermediate allocations and this patch optimizes this behavior by reducing buffer allocation only once specifically of hex computation for int64.

@github-actions github-actions bot added the spark label Jun 20, 2025
@Dandandan
Copy link
Contributor

I think this is probably faster! Do we have any benchmarks for this to show it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants