numba
numba copied to clipboard
Stop type inference from indefinite retry on failed function resolution
Fix hang seen in https://github.com/numba/numba/issues/9257
Summary of changes:
- Added a fail-cache to remember failed function resolution for the current compilation session and avoid repeated attempts of known failing cases.
- The fail-cache can be disabled by an env-var to help debug any unforeseen problem arising from this change of type inference behavior.
TODO:
- [x] Add a config to disable the fail cache.
TODOs:
- [ ] check https://github.com/numba/numba/issues/9375#issuecomment-1893955887