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

Use initial capacity for interner hashmap #2273

Closed
Dandandan opened this issue Aug 1, 2022 · 0 comments · Fixed by #2272
Closed

Use initial capacity for interner hashmap #2273

Dandandan opened this issue Aug 1, 2022 · 0 comments · Fixed by #2272
Labels
arrow Changes to the arrow crate enhancement Any new improvement worthy of a entry in the changelog performance

Comments

@Dandandan
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Writing dictionary encoded arrays using parquet spends lot of time rehashing arrays.

Describe the solution you'd like

Use am initial capacity for the interner hashmap. This saves reallocating and shuffling around the table every time the capacity is too low (each time the size doubles).

Describe alternatives you've considered

n/a

Additional context

@Dandandan Dandandan added the enhancement Any new improvement worthy of a entry in the changelog label Aug 1, 2022
@alamb alamb added arrow Changes to the arrow crate performance labels Aug 4, 2022
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 enhancement Any new improvement worthy of a entry in the changelog performance
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants