Message216444
| Author |
neologix |
| Recipients |
josh.r, neologix, njs, pitrou, skrah, vstinner |
| Date |
2014年04月16日.07:18:37 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CAH_1eM3TRmqR_0XU3mjvbZiAZcHyrw5cJ9KcvKCmYQjwVz_6zA@mail.gmail.com> |
| In-reply-to |
<1397616056.23.0.259994659332.issue21233@psf.upfronthosting.co.za> |
| Content |
>> So what is the point of _PyObject_GC_Calloc ?
>
> It calls calloc(size) instead of malloc(size), calloc() which can be faster than malloc()+memset(), see:
> https://mail.python.org/pipermail/python-dev/2014-April/133985.html
It will only make a difference if the allocated region is large enough
to be allocated by mmap (so not for 90% of objects). |
|