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

fix accidental quadratic behavior in rolling_groupby #3510

Merged
merged 1 commit into from
May 26, 2022

Conversation

ritchie46
Copy link
Member

Imagine creating a window size larger than any value in the column.

Every slot we would do a linear search to the end to found the boundary. O(n^2)

@github-actions github-actions bot added the rust Related to Rust Polars label May 26, 2022
@ritchie46 ritchie46 merged commit df22b1b into master May 26, 2022
@ritchie46 ritchie46 deleted the fix_accidental_quadratic_rolling_groupby branch May 26, 2022 14:17
@ritchie46
Copy link
Member Author

@yutiansut FYI, I can recall that you had problems with the performance of this operation. Together with #3515 there will be a tremendous speedup.

@yutiansut
Copy link

@ritchie46 that's cool~ let me try it and thanks!!

moritzwilksch pushed a commit to moritzwilksch/polars that referenced this pull request May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants