[Python-Dev] Reduce memory footprint of Python

Barry Warsaw barry at python.org
Wed Oct 9 18:53:39 CEST 2013


On Oct 06, 2013, at 11:41 AM, Benjamin Peterson wrote:

>What is the usecase for minimizing the memory usage of Python in the
>middle of a program?

There are environments where Python is being actively discouraged in part due
to its memory footprint.  For example, we can't use Python on Ubuntu Touch for
long-running processes because the target platforms (phones, tablets) are
memory constrained.  Python will never be as conservative as C++, but it's
also unfortunate that the issue is bad enough for its use to be prohibited.

FWIW, Python 3 is acceptable for some short-lived processes on these
platforms.

-Barry


More information about the Python-Dev mailing list