Controlling memory allocation

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


Hello.
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