Python tips for memory optimization

前端 未结 7 1822
心在旅途
心在旅途 2020-12-24 04:07

I need to optimize the RAM usage of my application.
PLEASE spare me the lectures telling me I shouldn\'t care about memory when coding Python. I have a memory problem be

相关标签:
7条回答
  • 2020-12-24 04:32

    If you want to do extensive optimization and have full control on memory usage you could also write a C/C++ module. Using Swig the code wrapping into Python can be done easily, with some small performance overhead comparing to pure C Python module.

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