-
Notifications
You must be signed in to change notification settings - Fork 44
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
Optimize calendar ops #325
Conversation
232ab6b
to
220fd0e
Compare
Coverage reportMain: 91.16% | PR: 91.23% | Diff: 0.08 ✅ |
temporian/implementation/numpy_cc/operators/calendar/day_of_month.cc
Outdated
Show resolved
Hide resolved
temporian/implementation/numpy_cc/operators/calendar/day_of_year.cc
Outdated
Show resolved
Hide resolved
temporian/implementation/numpy_cc/operators/calendar/isoweek.cc
Outdated
Show resolved
Hide resolved
8fdc1b3
to
d8fb639
Compare
Coverage reportMain: 91.18% | PR: 91.26% | Diff: 0.08 ✅ |
@achoum @ianspektor I just pushed a major refactor to reuse more code. It made each operator so simple that I ended up consolidating everything under a single calendar.cc.
|
@achoum will wait for your re-review before merging this since there was a big refactor after your initial review |
d8fb639
to
fa646cb
Compare
Coverage reportMain: 91.19% | PR: 91.27% | Diff: 0.07 ✅ |
fa646cb
to
66a1c2d
Compare
Coverage reportMain: 91.19% | PR: 91.17% | Diff: -0.02 |
1 similar comment
Coverage reportMain: 91.19% | PR: 91.17% | Diff: -0.02 |
6ddaf06
to
6c72287
Compare
Coverage reportMain: 91.12% | PR: 91.10% | Diff: -0.02 |
6c72287
to
1e937ab
Compare
Coverage reportMain: 91.10% | PR: 91.08% | Diff: -0.02 |
c5b6336
to
c69e2f2
Compare
40dee6c
to
ab36c41
Compare
- made a base class for the calendar operation implementations to reuse more code - changed the cpp code to avoid raising exceptions and return error messages instead - simplified the cpp templating code, a single function that accepts a function eas sufficient
Also addressed the smaller changes requested
Found some issues that couldn't solve
ab36c41
to
9dae7ad
Compare
@achoum I ran into some issues when moving my utility functions to |
No description provided.