summaryrefslogtreecommitdiff
path: root/Include/setobject.h
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-09-07 20:26:50 -0700
committerRaymond Hettinger <python@rcn.com>2013-09-07 20:26:50 -0700
commit8f8839e10adc4d2b89ca26642c89c22382b1ce2f (patch)
tree16ae41cafec99a8920e3a554ac62e82d68ba35fd /Include/setobject.h
parentff6382b40dfe6c0c978f25f027a72ac91c5449a6 (diff)
downloadcpython-git-8f8839e10adc4d2b89ca26642c89c22382b1ce2f.tar.gz
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 'Include/setobject.h')
-rw-r--r--Include/setobject.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/Include/setobject.h b/Include/setobject.h
index f377a738a8..ae3f556365 100644
--- a/Include/setobject.h
+++ b/Include/setobject.h
@@ -105,7 +105,6 @@ PyAPI_FUNC(PyObject *) PySet_Pop(PyObject *set);
PyAPI_FUNC(int) _PySet_Update(PyObject *set, PyObject *iterable);
PyAPI_FUNC(int) PySet_ClearFreeList(void);
-PyAPI_FUNC(void) _PySet_DebugMallocStats(FILE *out);
#endif
#ifdef __cplusplus