[Python-Dev] Reduce memory footprint of Python (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Oct 9 00:01:01 CEST 2013


R. David Murray wrote:

I can give you one data point: a mobile platform that (currently) uses Python3, and does not use linecache because of how much memory it consumes.

Wouldn't a sensible approach be to discard the linecache when you've finished generating a traceback? You're not likely to be generating tracebacks often enough to be worth keeping it from one to the next.

-- Greg



More information about the Python-Dev mailing list