diff options
author | Neil Schemenauer <nas-github@arctrix.com> | 2019-07-10 12:04:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-10 12:04:16 -0700 |
commit | 5d25f2b70351fc6a56ce5513ccf5f58556c18837 (patch) | |
tree | 96710d3043ad55a882f7ee91ca5744f1f11709f4 /Python/import.c | |
parent | f117d871c467e82d98b127fd77d2542600d67c39 (diff) | |
download | cpython-git-5d25f2b70351fc6a56ce5513ccf5f58556c18837.tar.gz |
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.
Diffstat (limited to 'Python/import.c')
0 files changed, 0 insertions, 0 deletions