Why disable the garbage collector?

后端 未结 4 1534
死守一世寂寞
死守一世寂寞 2021-02-07 00:09

Pythons gc.disable disables automatic garbage collection. As I understand it, that would have quite some side-effects. Why would anyone want to disable automatic garbage colle

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-07 01:06

    Another use-case would be to manually control the garbage collection with gc.collect()

提交回复
热议问题