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

perf(rust, python): use inlined strings for field and schema #7272

Merged
merged 3 commits into from
Mar 1, 2023

Conversation

ritchie46
Copy link
Member

@ritchie46 ritchie46 commented Mar 1, 2023

Column names up to 23 bytes are now inlined via smartstring. This saves a lot of very small allocations. And saves an indirection on column access. This column access can be very expensive as we do a linear search.

@github-actions github-actions bot added performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars labels Mar 1, 2023
@ritchie46 ritchie46 merged commit 59536fc into master Mar 1, 2023
@ritchie46 ritchie46 deleted the inline branch March 1, 2023 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant