[issue37029] PyObject_Free is O(N) where N = # of arenas

Tim Peters report at bugs.python.org
Fri May 31 01:15:49 EDT 2019


Tim Peters <tim at python.org> added the comment:

Added file arena.py.  This adds some code to the OP's original test, to print out build time and teardown time, and display obmalloc stats.

You'll need at least 80GB of RAM to run it - I don't have that much.  Building the tree may take on the order of an hour, but the time to tear it down is what's interesting here.  Apparently 3.7.3 needs more than 4 hours to reclaim the memory.

----------
Added file: https://bugs.python.org/file48378/arena.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37029>
_______________________________________


More information about the Python-bugs-list mailing list