summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.8.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 05b7d23..758d32e 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -242,6 +242,11 @@ Optimizations
Note that this means that instances can no longer be weak-referenced and
that arbitrary attributes can no longer be added to them.
+* The :class:`list` constructor does not overallocate the internal item buffer
+ if the input iterable has a known length (the input implements ``__len__``).
+ This makes the created list 12% smaller on average. (Contributed by Pablo
+ Galindo in :issue:`33234`.)
+
Build and C API Changes
=======================