-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
[CLN] Merge inference into lib.pyx #22219
Conversation
Codecov Report
@@ Coverage Diff @@
## master #22219 +/- ##
==========================================
+ Coverage 92.06% 92.06% +<.01%
==========================================
Files 169 169
Lines 50698 50698
==========================================
+ Hits 46675 46676 +1
+ Misses 4023 4022 -1
Continue to review full report at Codecov.
|
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.
why is this a good idea? i thought we discussed a long time ago to make this a separate module
isn’t that better than making s bigger module? or is this just not possible ?
Think of these as orthogonal goals. This doesn't change the size of the module, just un-splits the file. ATM I find myself switching between files to make sure I know what's in the namespace, which really doesn't have any upside. Plus its progress towards killing off src/ There are a few more things we can move out; most of the low-hanging fruit has been picked. |
ok this is fine, ideally can pull out a separate inference module that is orthogonal though. |
Continue trimming down _libs/src.
src/inference is a minor hassle, particularly because ATM there are imports/cimports in both it and lib. Its existence also complicates setup.py a bit.
Evidently parse_helper.h depended on the order in which it was included (I assume this is a code smell in C, but who knows). Fixed this.
This is almost cut/paste. The changes are:
for i from 0 <= i < n:
tofor i in range(n):
in a few places