diff options
author | Raymond Hettinger <python@rcn.com> | 2004-05-05 05:37:53 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-05-05 05:37:53 (GMT) |
commit | 0468e416c16f5d2ac072628b0d31e129e0b2776f (patch) | |
tree | 48514aedd414e7ea6214a5ba8834a396b75d631f /Misc | |
parent | 8aa8c84d18aecdc63279ccd82cf4c7815900fe1c (diff) | |
download | cpython-0468e416c16f5d2ac072628b0d31e129e0b2776f.zip cpython-0468e416c16f5d2ac072628b0d31e129e0b2776f.tar.gz cpython-0468e416c16f5d2ac072628b0d31e129e0b2776f.tar.bz2 |
SF patch #947476: Apply freelist technique to lists
Re-use list object bodies. Saves calls to malloc() and free() for
faster list instantiation and deallocation.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -54,6 +54,9 @@ Core and builtins the overallocation is no more than three elements -- this improves space utilization for applications that have large numbers of small lists. +- Most list bodies now get re-used rather than freed. Speeds up list + instantiation and deletion by saving calls to malloc() and free(). + - The dict.update() method now accepts all the same argument forms as the dict() constructor. This now includes item lists and/or keyword arguments. |