-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
PERF: Cython optimizations for period module, round one #9504
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
Conversation
vbench results |
d2e827a
to
63d6ba4
Compare
I removed one commit because I thought it was a bad decision. I don't think it will affect the performance results too much. |
63d6ba4
to
6d51247
Compare
Looks good to me. You'll need to add types if you want significant speedups for things like the |
return False | ||
return (self.ordinal == other.ordinal | ||
return _nat_scalar_rules[op] | ||
return (PyObject_RichCompareBool(self.ordinal, other.ordinal, op) | ||
and _gfc(self.freq) == _gfc(other.freq)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you've already verified that frequencies are equal by the time you get here -- do you really need to check the frequency codes, too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also a very good call.
6d51247
to
92e91fc
Compare
92e91fc
to
3c4ece3
Compare
Current build failure is a problem with Travis CI and PyPI package resolution. Happening with other builds too. |
@blbradley thanks for the report, I opened a conda issue for that: conda/conda#1166 |
can you post an updated vbench? |
@blbradley The build did pass when I restarted it (after conda deployed their fix) |
@shoyer fyi, I turned off |
lgtm, @shoyer ? |
Yes, looks good to me! |
PERF: Cython optimizations for period module, round one
Each commit passes
test_fast.sh
, so performance can be measured between commits.I can break any of these commits into separate PRs if needed.