[pypy-dev] PyPy and memory

Armin Rigo arigo at tunes.org
Sat Apr 30 17:54:31 CEST 2011


Hi Massimo,

On Sat, Apr 30, 2011 at 5:38 PM, Massimo Sala <massimo.sala.71 at gmail.com> wrote:
> Is it possible for the maintainers to provide
> - PyPy
> - PyPy with tcmalloc

Feel free to try.  You need to get pypy, translate it (cd
pypy/translator/goal; ./translate.py -Ojit), and you get the C sources
in /tmp/usession-yourname/testing_1.  Then you can try to add a
#define to rename all malloc() to tcmalloc(), or however it is called.

PyPy does not use malloc() to allocate its own objects, but it still
uses malloc() to get arenas, so in this point of view it is similar to
CPython.


A bientôt,

Armin.



More information about the Pypy-dev mailing list