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: Improve DataFrame.sort().limit/top_k performance #19731

Merged
merged 4 commits into from
Nov 11, 2024
Merged

perf: Improve DataFrame.sort().limit/top_k performance #19731

merged 4 commits into from
Nov 11, 2024

Conversation

ritchie46
Copy link
Member

Closes #19281

We went into row-encoding. This dispatches to primitives and thus saves an expensive encoding and a very expensive comparison function (strcmp).

@github-actions github-actions bot added performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars labels Nov 11, 2024
@ritchie46 ritchie46 changed the title perf: Improve DataFrame.sort().limit performance perf: Improve DataFrame.sort().limit/top_k performance Nov 11, 2024
@ritchie46 ritchie46 merged commit 4c90458 into main Nov 11, 2024
24 of 25 checks passed
@ritchie46 ritchie46 deleted the top_k branch November 11, 2024 16:56
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.

top_k is slow and uses a lot of memory
1 participant