commit | 5d25f2b70351fc6a56ce5513ccf5f58556c18837 | [log] [tgz] |
---|---|---|
author | Neil Schemenauer <nas-github@arctrix.com> | Wed Jul 10 12:04:16 2019 -0700 |
committer | GitHub <noreply@github.com> | Wed Jul 10 12:04:16 2019 -0700 |
tree | 96710d3043ad55a882f7ee91ca5744f1f11709f4 | |
parent | f117d871c467e82d98b127fd77d2542600d67c39 [diff] |
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.