[Python-checkins] cpython: Remove last references to the removed Unicode free list

victor.stinner python-checkins at python.org
Sat Oct 29 02:00:58 CEST 2011


http://hg.python.org/cpython/rev/085d3a2d4102
changeset:   73183:085d3a2d4102
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Sun Oct 23 19:43:33 2011 +0200
summary:
  Remove last references to the removed Unicode free list

files:
  Objects/unicodeobject.c |  23 -----------------------
  1 files changed, 0 insertions(+), 23 deletions(-)


diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -50,29 +50,6 @@
 #  define DONT_MAKE_RESULT_READY
 #endif
 
-/* Limit for the Unicode object free list */
-
-#define PyUnicode_MAXFREELIST       1024
-
-/* Limit for the Unicode object free list stay alive optimization.
-
-   The implementation will keep allocated Unicode memory intact for
-   all objects on the free list having a size less than this
-   limit. This reduces malloc() overhead for small Unicode objects.
-
-   At worst this will result in PyUnicode_MAXFREELIST *
-   (sizeof(PyUnicodeObject) + KEEPALIVE_SIZE_LIMIT +
-   malloc()-overhead) bytes of unused garbage.
-
-   Setting the limit to 0 effectively turns the feature off.
-
-   Note: This is an experimental feature ! If you get core dumps when
-   using Unicode objects, turn this feature off.
-
-*/
-
-#define KEEPALIVE_SIZE_LIMIT       9
-
 /* Endianness switches; defaults to little endian */
 
 #ifdef WORDS_BIGENDIAN

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list