Skip to content

PERF: improve perf of variable window rolling_min/max #19521

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

Closed
jreback opened this issue Feb 3, 2018 · 1 comment · Fixed by #19549
Closed

PERF: improve perf of variable window rolling_min/max #19521

jreback opened this issue Feb 3, 2018 · 1 comment · Fixed by #19549
Labels
Performance Memory or execution speed performance Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Feb 3, 2018

The variable window implementation of rolling max/min
is O(n x w) rather than amortized O(n) with a deque
based algorithm

here is a possibility
we could easily use the cython c++ impl of deque. here is a suggestion to use a heap.

@jreback jreback added Performance Memory or execution speed performance Reshaping Concat, Merge/Join, Stack/Unstack, Explode Difficulty Intermediate labels Feb 3, 2018
@jreback jreback added this to the Next Major Release milestone Feb 3, 2018
@hexgnu
Copy link
Contributor

hexgnu commented Feb 6, 2018

I took a crack at this using the deque.

@jreback jreback modified the milestones: Next Major Release, 0.23.0 Feb 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Memory or execution speed performance Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants