[issue21556] try to use hashtable in pickle
STINNER Victor
report at bugs.python.org
Fri May 23 11:26:44 CEST 2014
STINNER Victor added the comment:
"Ah, so this means CF's patch will make the pickle memotable invisible to tracemalloc?"
Currently, _Py_hashtabe uses PyMem_RawMalloc and PyMem_RawFree by default (realloc is not needed, we need to keep the previous buckets on rehash). Using _Py_hashtable_new_full, you can choose a different memory allocator.
Hum, wait. tracemalloc uses trace PyMem_RawMalloc and PyMem_RawFree. In fact, tracemalloc ignores reentrant calls to the memory allocator. So now I don't remember exactly why I chose a custom hash table implementation :-) Maybe because Python dict requires Python objects with reference counter, use the garbage collector, etc.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21556>
_______________________________________
More information about the Python-bugs-list
mailing list