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 nested grouptuples related code #8618

Merged
merged 1 commit into from
May 1, 2023
Merged

Conversation

ritchie46
Copy link
Member

Fixes #8603

Nested group_tuples would allocate per item that iterated. Very expensive. This fixes that and adds fast path bounds. So struct unique related functionality during aggregation is ~15x faster. Not that impressive, given that we were just slow.

@github-actions github-actions bot added performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars labels May 1, 2023
@ritchie46 ritchie46 merged commit f3775ed into main May 1, 2023
@ritchie46 ritchie46 deleted the threads branch May 1, 2023 12:26
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.

pl.struct().n_unique().over() has very low memory limit
1 participant