Numba `cache=True ` has no effect
问题 I write below code to test cache feature of numba import numba import numpy as np import time @numba.njit(cache=True) def sum2d(arr): M, N = arr.shape result = 0.0 for i in range(M): for j in range(N): result += arr[i,j] return result a=np.random.random((1000,100)) print(time.time()) sum2d(a) print(time.time()) print(time.time()) sum2d(a) print(time.time()) Though, there are some cache files generated in pycache folder, the timing is always the same like 1576855294.8787484 1576855295.5378428