-
Notifications
You must be signed in to change notification settings - Fork 89
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
[pythongen] Simplify slot generation iterators #2001
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2001 +/- ##
==========================================
- Coverage 80.69% 80.66% -0.04%
==========================================
Files 104 104
Lines 11622 11598 -24
Branches 2910 2893 -17
==========================================
- Hits 9378 9355 -23
- Misses 1701 1702 +1
+ Partials 543 541 -2 ☔ View full report in Codecov by Sentry. |
so i'm trying to make the postinit behavior be identical across classes, and i'm curious - why does most of the validation behavior happen before the I would assume that the classes would be structured one of two ways -
why would the super() come at the end? i'm sure i'm missing something |
Noticed that most of the logic of the slot and postinit generation iteration logic in pythongen was just sorting, and also made some potentially expensive calls multiple time. unified a sorting method and trimmed down unused/duplicated code. generated kitchen sink and biolink and both were identical.
sorting usually a lil easier to maintain than truth tables <3.
marginal perf benefit, the lions share of time is still in
induced_slot
since ig the changes i made there got deployed but we haven't updated the lockfile here yet?