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
1.4m articles
1.4m replys
5 comments
57.0k users