[Python-Dev] [numpy wishlist] PyMem_*Calloc

Ethan Furman ethan at stoneleaf.us
Mon Apr 14 22:10:33 CEST 2014


On 04/14/2014 08:36 AM, Benjamin Peterson wrote:
> On Sun, Apr 13, 2014, at 22:39, Nathaniel Smith wrote:
>>
>> SO, we'd like to route our allocations through PyMem_* in order to let
>> tracemalloc "see" them, but because there is no PyMem_*Calloc, doing
>> this would force us to give up on the calloc() optimizations.
>
> Well, the allocator API is not part of the stable ABI, so we can change
> it if we want.


>> Thoughts?
>
> I think the request is completely reasonable.

+1

--
~Ethan~


More information about the Python-Dev mailing list