Relative Content

Tag Archive for python-3.xnumpynumba

Numb @njit @jitclass memory accumulation in loops

We are encountering a memory accumulation issue when using a Numba class to append arrays of floats to a list within a loop. Despite clearing the list before each iteration, the memory usage continues to grow proportionally with the loop size. Interestingly, this problem only arises when the class is implemented using Numba; it doesn’t occur with a standard Python class.