Skip to content

Feat: disabled automatic cache of numba-jit functions#777

Open
mrava87 wants to merge 2 commits into
PyLops:devfrom
mrava87:feat-numba_cache
Open

Feat: disabled automatic cache of numba-jit functions#777
mrava87 wants to merge 2 commits into
PyLops:devfrom
mrava87:feat-numba_cache

Conversation

@mrava87

@mrava87 mrava87 commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

This PR modifies the behavior of numba-JITed functions making cache=False by default and introducing an environment variable NUMBA_CACHE_PYLOPS, which can be set to 1 to enable caching.

This change is motivated by the fact that in some systems one may install Python and Python related libraries in a read-only space, therefore the default NUMBA_CACHE_DIR would not work. Moreover, since @jit itself has cache=False, this change brings the default approach of PyLops closer to the default approach of Numba itself.

@mrava87 mrava87 self-assigned this Jul 21, 2026
@mrava87 mrava87 added the enhancement New feature or request label Jul 21, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 5 duplication

Metric Results
Complexity 0
Duplication 5

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant