diff options
author | Raymond Hettinger <python@rcn.com> | 2013-09-08 03:26:50 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2013-09-08 03:26:50 (GMT) |
commit | 8f8839e10adc4d2b89ca26642c89c22382b1ce2f (patch) | |
tree | 16ae41cafec99a8920e3a554ac62e82d68ba35fd /Objects/object.c | |
parent | ff6382b40dfe6c0c978f25f027a72ac91c5449a6 (diff) | |
download | cpython-8f8839e10adc4d2b89ca26642c89c22382b1ce2f.zip cpython-8f8839e10adc4d2b89ca26642c89c22382b1ce2f.tar.gz cpython-8f8839e10adc4d2b89ca26642c89c22382b1ce2f.tar.bz2 |
Remove the freelist scheme for setobjects.
The setobject freelist was consuming memory but not providing much value.
Even when a freelisted setobject was available, most of the setobject
fields still needed to be initialized and the small table still required
a memset(). This meant that the custom freelisting scheme for sets was
providing almost no incremental benefit over the default Python freelist
scheme used by _PyObject_Malloc() in Objects/obmalloc.c.
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c index 693d8c7..8018c6a 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1955,7 +1955,6 @@ _PyObject_DebugTypeStats(FILE *out) _PyFrame_DebugMallocStats(out); _PyList_DebugMallocStats(out); _PyMethod_DebugMallocStats(out); - _PySet_DebugMallocStats(out); _PyTuple_DebugMallocStats(out); } |