]> granicus.if.org Git - python/commitdiff
Remove last references to the removed Unicode free list
authorVictor Stinner <victor.stinner@haypocalc.com>
Sun, 23 Oct 2011 17:43:33 +0000 (19:43 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sun, 23 Oct 2011 17:43:33 +0000 (19:43 +0200)
Objects/unicodeobject.c

index ef2839a125a75da491cfb38f6400664d8e9cb976..547c857ac833be0638adb856725ef067f91d1138 100644 (file)
@@ -50,29 +50,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #  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