-
Notifications
You must be signed in to change notification settings - Fork 26
Importlib unhack #1064
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
Importlib unhack #1064
Conversation
a789bcd to
85a4e35
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #1064 +/- ##
===========================================
- Coverage 89.08% 88.76% -0.33%
===========================================
Files 126 126
Lines 11965 11969 +4
===========================================
- Hits 10659 10624 -35
- Misses 1306 1345 +39 ☔ View full report in Codecov by Sentry. |
|
Updating with the dynamic importing compromise suggested by Joakim(numpy). The This keeps the ability to do the following: |
766fd2c to
cc90cbb
Compare
|
@j-c-c Can you do a prelim review on this? I'm still running the tests regarding the resource usage, but I think we want this either way at this point. (I know its already improving some resource usage cases and has the best compromise regarding imports). |
j-c-c
left a comment
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.
This looks good to me. Everything seems to work as expected.
The only thing I would change (which is not functionally important) is adding backticks around {__name__} and {attr} in the error message.
Sure, done. |
|
Merging. |
This top level import (which I put in a long time ago for potential convenience) seems to be causing increased memory usage.
I don't think anyone uses the feature. Its also most of what makes the first import of
aspireslow.Tentatively suggesting we remove it. Running some large experiments now to see if improves the resource utilization.