Python garbage collection can be that slow?

前端 未结 3 514
清酒与你
清酒与你 2021-01-01 18:45

I have a problem with my python application, and I think it\'s related to the python garbage collection, even if I\'m not sure...

The problem is that my application

3条回答
  •  再見小時候
    2021-01-01 19:14

    If your problem really is the garbage collection, try explicitly freeing your objects when you're done with them using del().

    In general, this doesn't sound like a garbage collection problem, unless we're talking about terabytes of memory.

    I agree with S.Lott... profile your app, then bring code snippets and the results of that back and we can be much more helpful.

提交回复
热议问题