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

Faster unpacking of Int32Type dictionary #4406

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

tustvold
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

There is no need to perform a checked conversion for Int32Type dictionary keys to UInt32Type

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jun 13, 2023
take(cast_dict_values.as_ref(), u32_indices, None)
let keys = dict_array.keys();
match K::DATA_TYPE {
DataType::Int32 => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theoretically we could pass the keys directly to take, this approach avoids additional codegen, and also appears to be faster for reasons I don't understand 😅

@tustvold tustvold merged commit 9d09fe5 into apache:master Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants