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): improve single argument elementwise expression pe… #7180

Merged
merged 1 commit into from
Feb 25, 2023

Conversation

ritchie46
Copy link
Member

…rformance in groupby context

This greatly simplifies the expressions by not exploding anymore to do elementwise operations in the groupby context. This explode could also lead to a full realloc (if it could not fast explode), and often lead to a recomputation of the groups.

When the groups overlapped (e.g. in groupby dynamic), the explode could lead to an explosion of memory usage. So all in all, small change, but a lot of benefit.

@github-actions github-actions bot added performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars labels Feb 25, 2023
@ritchie46 ritchie46 merged commit 5f26668 into master Feb 25, 2023
@ritchie46 ritchie46 deleted the apply branch February 25, 2023 15:31
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