Controlling memory allocation

Tommy.Ryding at Tommy.Ryding at
Mon Sep 5 13:42:41 CEST 2005

I have done the thing you are requesting. You can easily create your
own memory pool and have Python to use it.

I added some rows to Pyconfig.h:

#ifdef malloc
#undef malloc
#endif /*malloc*/
#define malloc  Python_malloc

Then I have some overhead in my own Python_malloc(size_t nBytes)

More information about the Python-list mailing list