I′m working with an array of size (256**4, dtype=ctypes.c_short) which takes 8 GB in memory as a multiprocessing.RawArray object in memory. After i did all calculations, i haven′t found a way to free up that space.The following don′t work:
X = RawArray(ctypes.c_short, 256**4) del X
Is there a special method to delete this kind of object?
I′m working in a Jupyter notebook in Windows with Python 3.7
2.1m questions
2.1m answers
60 comments
57.0k users