-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Performance regression in rolling.Quantile.time_quantile #33913
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
Comments
May be more reproducible with smaller window sizes (window=10). |
how is this a regression unless your numbers are backwards? |
Interesting. I only ran the memory benchmarks, but when reviewing my results (posted in #33693), the times were sometimes a bit higher after my changes, except in the last run. In general the times were often quite different between runs, so I thought this was due to background processes on my system. The only reason I could think of is that I changed the functions to pass memoryviews ( |
I could reproduce the behaviour on my machine and did some tests, but the results are a bit strange. As I mentioned in my PR (#33693), there were two ways to fix the memory problem:
I implemented both fixes in #33639. In the comment above, I assumed that fix 2 might have been the problem. Therefore, I ran the
Shown are just the results for the benchmark from above, (Series, 10, int, 1):
As can be seen, the "fixed" versions run about 40% longer than master. The results are consistent with what @TomAugspurger showed above. |
moved off 1.1.1 milestone (scheduled for this week) as no PRs to fix in the pipeline |
moved off 1.1.2 milestone (scheduled for this week) as no PRs to fix in the pipeline |
moved off 1.1.3 milestone (overdue) as no PRs to fix in the pipeline |
moved off 1.1.4 milestone (scheduled for release tomorrow) as no PRs to fix in the pipeline |
Given this issue is with an unsupported version of pandas now, going to close. |
https://pandas.pydata.org/speed/pandas/index.html#rolling.Quantile.time_quantile?p-constructor=%27Series%27&p-window=1000&p-dtype=%27int%27&p-percentile=1&p-param5=%27linear%27&commits=df5eee60d60a604969bdc3e36a0da20ea36af3f6.
Seems to be from #33693 (cc @s-scherrer).
Interestingly, I'm not able to reproduce this locally. Is anyone else able to?
The text was updated successfully, but these errors were encountered: