]> granicus.if.org Git - python/commit
Patch #1953
authorChristian Heimes <christian@cheimes.de>
Mon, 4 Feb 2008 18:00:12 +0000 (18:00 +0000)
committerChristian Heimes <christian@cheimes.de>
Mon, 4 Feb 2008 18:00:12 +0000 (18:00 +0000)
commit422051a3675271e179995ad4a0f056ff94395d55
tree3316e9503901082cc4beefbf169d8191c9838190
parenta26cf9b7609fc1c08fd1a69ddf5e44dc98a70dce
Patch #1953
I implemented the function sys._compact_freelists() and C API functions PyInt_/PyFloat_CompactFreeList() to compact the pre-allocated blocks of ints and floats. They allow the user to reduce the memory usage of a Python process that deals with lots of numbers.
The patch also renames sys._cleartypecache to sys._clear_type_cache
Doc/c-api/float.rst
Doc/c-api/int.rst
Doc/library/sys.rst
Include/floatobject.h
Include/intobject.h
Lib/test/regrtest.py
Lib/test/test_sys.py
Misc/NEWS
Objects/floatobject.c
Objects/intobject.c
Python/sysmodule.c