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): reduce page faults in q1 ~-30% #9423

Merged
merged 4 commits into from
Jun 19, 2023
Merged

perf(rust, python): reduce page faults in q1 ~-30% #9423

merged 4 commits into from
Jun 19, 2023

Conversation

ritchie46
Copy link
Member

@ritchie46 ritchie46 commented Jun 18, 2023

Vec::resize is silently very expensive. Got 30% of q1 by reallocating in certain conditions. I think we can apply the same on other locations.

Other optimization is earlier fetching chunks when iterating streaming.

@github-actions github-actions bot added performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars labels Jun 18, 2023
@ritchie46 ritchie46 merged commit c97ff64 into main Jun 19, 2023
@ritchie46 ritchie46 deleted the alloc branch June 19, 2023 07:07
c-peters pushed a commit to c-peters/polars that referenced this pull request Jul 14, 2023
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