-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
PERF: Remove unnecessary asof join functions #46943
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
5c27aa2
to
181f9e4
Compare
cool, how much? |
Several functions in the join cython are module are basically just calling others, and can probably be removed. This wouldn't be a big deal inside python, but in this case it cuts down considerably on the number of generated cython code. The tests pass for me locally when I do this and there seems to be significant space savings. Will provide more detail after I see CI passing (want to make sure I'm not missing something first)
181f9e4
to
34d69ff
Compare
I think I was seeing about a megabyte on join.pyx, although I think there might be the potential for further gains. Unfortunately I wasn't running the tests properly so I didn't notice that my PR didn't actually work. 😦 Need to dig in a bit further. |
Ok, think I got this working now. It's not as big an improvement as I thought (about 100k or ~4% off of the generated .so for join, not sure why I got it wrong) but I don't think it impacts readability (arguably it helps) so it seems worth doing. Before
After
|
Ok, I think this is ready for a look! docstring and typing information is giving an error but I don't see how it could be related to the code changes here (a very similar pull request from last night was passing):
|
this is unrelated |
thanks @wlach |
Several functions in the join cython are module are basically just calling others, and can probably be removed. This wouldn't
be a big deal inside python, but in this case it cuts down considerably on the amount of generated cython code.
The tests pass for me locally when I do this and there seems to be significant space savings.