Possible to set cpython heap size?

Diez B. Roggisch deets at nospam.web.de
Thu Feb 22 12:40:59 EST 2007


Andy Watson wrote:

> I have an application that scans and processes a bunch of text files.
> The content I'm pulling out and holding in memory is at least 200MB.
> 
> I'd love to be able to tell the CPython virtual machine that I need a
> heap of, say 300MB up front rather than have it grow as needed.   I've
> had a scan through the archives of comp.lang.python and the python
> docs but cannot find a way to do this.  Is this possible to configure
> the PVM this way?

Why do you want that? And no, it is not possible. And to be honest: I have
no idea why e.g. the JVM allows for this.

Diez



More information about the Python-list mailing list