summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-03-16 01:14:46 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-03-16 01:14:46 (GMT)
commitcf79aace07a57d480605f4a5aa8b9ca68567792e (patch)
tree3d99af4236d55d986454a6ca95c724a990c80dc2 /Misc
parentf8480a7856f8f2027c3f064219466b096fc104e5 (diff)
downloadcpython-cf79aace07a57d480605f4a5aa8b9ca68567792e.zip
cpython-cf79aace07a57d480605f4a5aa8b9ca68567792e.tar.gz
cpython-cf79aace07a57d480605f4a5aa8b9ca68567792e.tar.bz2
Merge the tim-obmalloc branch to the trunk.
This is a heavily altered derivative of SF patch 1123430, Evan Jones's heroic effort to make obmalloc return unused arenas to the system free(), with some heuristic strategies to make it more likley that arenas eventually _can_ be freed.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS12
1 files changed, 12 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 9d2ceee..ddbb0ff 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,18 @@ What's New in Python 2.5 alpha 1?
Core and builtins
-----------------
+- Patch #1123430: Python's small-object allocator now returns an arena to
+ the system ``free()`` when all memory within an arena becomes unused
+ again. Prior to Python 2.5, arenas (256KB chunks of memory) were never
+ freed. Some applications will see a drop in virtual memory size now,
+ especially long-running applications that, from time to time, temporarily
+ use a large number of small objects. Note that when Python returns an
+ arena to the platform C's ``free()``, there's no guarantee that the
+ platform C will in turn return that memory to the operating system. The
+ effect of the patch is to stop making that impossible, and in tests it
+ appears to be effective at least on Microsoft C and gcc-based systems.
+ Thanks to Evan Jones for hard work and patience.
+
- Patch #1434038: property() now uses the getter's docstring if there is
no "doc" argument given. This makes it possible to legitimately use
property() as a decorator to produce a read-only property.