Author vstinner
Recipients josh.r, neologix, njs, pitrou, skrah, vstinner
Date 2014-04-16.08:06:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
2014-04-16 3:18 GMT-04:00 Charles-Fran├žois Natali <>:
>> It calls calloc(size) instead of malloc(size), calloc() which can be faster than malloc()+memset(), see:
> It will only make a difference if the allocated region is large enough
> to be allocated by mmap (so not for 90% of objects).

Even if there are only 10% of cases where it may be faster, I think
that it's interesting to use calloc() to allocate Python objects. You
may create large Python objects ;-)

I didn't check which objects use (indirectly) _PyObject_GC_Calloc().
Date User Action Args
2014-04-16 08:06:13vstinnersetrecipients: + vstinner, pitrou, njs, skrah, neologix, josh.r
2014-04-16 08:06:13vstinnerlinkissue21233 messages
2014-04-16 08:06:13vstinnercreate