Skip to content

REF: Use more memory views in rolling aggregations #37886

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

Merged
merged 1 commit into from
Nov 16, 2020

Conversation

mroeschke
Copy link
Member

  • tests added / passed

@mroeschke mroeschke added Refactor Internal refactoring of code Window rolling, ewma, expanding labels Nov 16, 2020
@mroeschke mroeschke added this to the 1.2 milestone Nov 16, 2020
@@ -136,7 +136,7 @@ cdef inline void remove_sum(float64_t val, int64_t *nobs, float64_t *sum_x,
sum_x[0] = t


def roll_sum(ndarray[float64_t] values, ndarray[int64_t] start,
def roll_sum(const float64_t[:] values, ndarray[int64_t] start,
Copy link
Member

Choose a reason for hiding this comment

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

Can start be a memoryview?

Copy link
Member Author

Choose a reason for hiding this comment

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

No (not yet). start/end go through functions that still expect a ndarray.

@jbrockmendel jbrockmendel merged commit eb4be94 into pandas-dev:master Nov 16, 2020
@jbrockmendel
Copy link
Member

thanks @mroeschke

@mroeschke mroeschke deleted the perf/rolling_memory_view branch November 16, 2020 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants