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: Fix quadratic 'with_columns' behavior #19701

Merged
merged 5 commits into from
Nov 8, 2024
Merged

perf: Fix quadratic 'with_columns' behavior #19701

merged 5 commits into from
Nov 8, 2024

Conversation

ritchie46
Copy link
Member

closes #19503

@github-actions github-actions bot added performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars labels Nov 8, 2024
self.columns.push(c);
}
// Schema is incorrect fallback to search
else {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self, add a debug assert here.

@ritchie46 ritchie46 merged commit 601fcb7 into main Nov 8, 2024
24 of 25 checks passed
@ritchie46 ritchie46 deleted the wc branch November 8, 2024 21:44
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.

Alternative concat way several times faster than with_columns() when adding many columns to the df
1 participant