-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Serious performance regression in DataFrame construction with monthly DatetimeIndex #6479
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
I've identified the cause: Using 'D' frequency:
And with 'M':
Which suggests this is due to a change in either |
yep it seems the offsets had the cache able class reversed with the offset |
Sure, I'll take a look tonight. |
Just for reference, git bisect identified 25cfcaf as the offending commit. |
yep...thanks |
I added a couple of vbenches...but what I think we really need is from my suggestion at the end of this issue: #6450 essentially make a small |
Yeah, that's what I was thinking. The test cases also aren't covering everything. |
so feel free to push to the PR (I think you might need to push to my branch)........i'll see if I can fix the daily issue.... you can also put up a separate PR and i'll merge them.... |
Some of the offsets aren't working just yet, but here's the comparison against v0.12.0:
|
Not sure if this feature would be generally useful, but '2M' wasn't affected:
|
2 month was being cached can u do a pr of this 2 my branch? or I can grab your commit what happens when u put in the change that I made? |
Just submitted a pull request to your branch. Working on running with your change. |
Your change vs. 0.12.0:
|
ok thanks |
cc @cancan101 |
Hi,
After upgrading from v0.12.0 to v0.13.1, I noticed about a 100% slowdown on a pandas-heavy project. I've just started looking, but I've come up with a test case that shows a time-complexity change from O(1) to O(n) (~240x slowdown for my inputs).
Here's the comparison for v0.12.0 (y-axis is milliseconds):
And the comparison for v0.13.1:
The test code (I'll convert this to vbench later):
Daily indices don't appear to be affected, though I suspect other frequencies are impacted. I'm seeing similar regressions in v0.13.0.
The text was updated successfully, but these errors were encountered: