Author vstinner
Recipients jtaylor, pitrou, rhettinger, serhiy.storchaka, vstinner, yselivanov
Date 2016-02-02.11:10:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Hum, the point of PyMem_Malloc() is that it's distinct from PyObject_Malloc(), right? Why would you redirect one to the other?

For performances.

> (of course, we might question why we have two different families of allocation APIs...)

That's the real question: why does Python have PyMem family? Is it still justified in 2016?


Firefox uses jemalloc to limit the fragmentation of the heap memory. Once I spent a lot of time to try to understand the principle of fragmentation, and in my tiny benchmarks, jemalloc was *much* better than system allocator. By the way, jemalloc scales well on multiple threads ;-)


My notes on heap memory fragmentation:
Date User Action Args
2016-02-02 11:10:45vstinnersetrecipients: + vstinner, rhettinger, pitrou, jtaylor, serhiy.storchaka, yselivanov
2016-02-02 11:10:45vstinnersetmessageid: <>
2016-02-02 11:10:45vstinnerlinkissue26249 messages
2016-02-02 11:10:45vstinnercreate