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

Use PEP 509 to invalidate cache of compiled @jit functions #2242

Open
seibert opened this Issue Jan 10, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@seibert
Contributor

seibert commented Jan 10, 2017

Right now, Numba violates Python semantics by "freezing" the value of globals as well as the inlining other function bodies when compiling a @jit function in nopython mode. This is because there has been no efficient way to detect when these external dependencies have changed.

Python 3.6 includes PEP 509, which adds a version number to dictionaries that Numba's dispatcher could check at call time to determine if dependent global variables or functions have been modified since the function was compiled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment