Skip to content

Cache output of numba_funcify where possible #180

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

Open
aseyboldt opened this issue Jan 6, 2023 · 0 comments
Open

Cache output of numba_funcify where possible #180

aseyboldt opened this issue Jan 6, 2023 · 0 comments
Labels
compilation help wanted Extra attention is needed numba

Comments

@aseyboldt
Copy link
Member

We could add cache_by_op or cache_by_op_and_sig decorators for numba_funcitfy functions, that internally use a LRU cache to keep track of previous njit functions. Each funcify function can then choose to reuse results in a way that is appropriate.
Most funcify functions only use the op, and don't even look at the node at all.
See also #179 for context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compilation help wanted Extra attention is needed numba
Projects
None yet
Development

No branches or pull requests

2 participants