]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #21233: Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(),
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 2 May 2014 20:31:14 +0000 (22:31 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 2 May 2014 20:31:14 +0000 (22:31 +0200)
commitdb067af12a5ebb889874e47d8177f9c4a3dc9a68
tree87cea7c1fb4a0905ac2632c03520c43f377b3584
parentd50c3f3f3af54f3be46d26d53a1c10b7c15a7b2d
Issue #21233: Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(),
PyObject_Calloc(), _PyObject_GC_Calloc(). bytes(int) and bytearray(int) are now
using ``calloc()`` instead of ``malloc()`` for large objects which is faster
and use less memory (until the bytearray buffer is filled with data).
Doc/c-api/memory.rst
Doc/whatsnew/3.5.rst
Include/objimpl.h
Include/pymem.h
Misc/NEWS
Modules/_testcapimodule.c
Modules/_tracemalloc.c
Modules/gcmodule.c
Objects/bytearrayobject.c
Objects/bytesobject.c
Objects/obmalloc.c