Memory leak on pickle inside a for loop forcing a memory error

前端 未结 1 391
太阳男子
太阳男子 2021-01-26 07:25

I have huge array objects that are pickled with the python pickler.

I am trying to unpickle them and reading out the data in a for loop. Every time I am done reading and

相关标签:
1条回答
  • 2021-01-26 07:58

    Python memory management does not free memory to OS till the process is running.

    Running the for loop with a subprocess to call the script helped me solved the issue. Thanks for the feedbacks.

    0 讨论(0)
提交回复
热议问题