-
Notifications
You must be signed in to change notification settings - Fork 32
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
JIT Cleanup #1007
JIT Cleanup #1007
Conversation
This is great. I assume these global variables in Numba need to be set before importing UXarray right? |
Well, they aren't really global variables in Numba. There isn't much point in having the |
+1 we should get rid of ENABLE_JIT_CACHE as you mention. For disable_numba what if we disable it at first - use case "codecov", in our current implementatation we don't have disable_numba. |
Yeah, I agee and don't really see much purpose in having a constant. Some functions can benefit from caching, while others may not. This should be something that we handle on a per-function basis. |
Disabling numba doesn't seem practical, or even really possible. We would have to somehow disable it before all the tests ran (no idea if that is possible, I don't know that it is but I am not well informed on the specifics of that), and it would slow down all the test cases. The CI would take forever to run since numba would be off for everything. |
I'll try some test to see, but disabling should be possible, even if it slows down one use case would be to get correct codecov and another to just check if sometime Numba has some issues going on with conversion to byte code etc. |
We did try already. Once the function is loaded, it doesn't matter if numba is disabled after the function is loaded with the wrapper. Numba is either off or on it seems, for the whole package, and you'd have to disable it before the tests ran somehow. At least based on our testing. You would have to rewrap the functions somehow if you wanted to turn them on and off mid-function. Just seems like a lot of work, just to increase code coverage. As long as we make sure we are covering with tests the functions that numba is on, I don't see it being that useful to turn numba on/off. |
ASV BenchmarkingBenchmark Comparison ResultsBenchmarks that have improved:
Benchmarks that have stayed the same:
|
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 was much needed. Thanks @aaronzedwick
Do you know what’s up with the precommit? It works locally. |
Nothing wrong on your end. See #991 |
Closes #969
Overview
Cleans up jit usage, standardizes
jit cache
, and removes redundant code.PR Checklist
General