]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37537: Compute allocated blocks in _Py_GetAllocatedBlocks() (#14680)
authorNeil Schemenauer <nas-github@arctrix.com>
Wed, 10 Jul 2019 19:04:16 +0000 (12:04 -0700)
committerGitHub <noreply@github.com>
Wed, 10 Jul 2019 19:04:16 +0000 (12:04 -0700)
commit5d25f2b70351fc6a56ce5513ccf5f58556c18837
tree96710d3043ad55a882f7ee91ca5744f1f11709f4
parentf117d871c467e82d98b127fd77d2542600d67c39
bpo-37537: Compute allocated blocks in _Py_GetAllocatedBlocks() (#14680)

Keeping an account of allocated blocks slows down _PyObject_Malloc()
and _PyObject_Free() by a measureable amount.  Have
_Py_GetAllocatedBlocks() iterate over the arenas to sum up the
allocated blocks for pymalloc.
Misc/NEWS.d/next/Core and Builtins/2019-07-10-09-56-47.bpo-37537.OkB0wd.rst [new file with mode: 0644]
Objects/obmalloc.c