From 238b267bf6da6311f7f2b1e6b1ee570f7d482db4 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 13 Feb 2004 21:50:27 +0000 Subject: [PATCH] Lists are measured in elements not bytes. --- Doc/whatsnew/whatsnew24.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/whatsnew/whatsnew24.tex b/Doc/whatsnew/whatsnew24.tex index 3530c12c70e..1fbc298be74 100644 --- a/Doc/whatsnew/whatsnew24.tex +++ b/Doc/whatsnew/whatsnew24.tex @@ -260,8 +260,8 @@ yellow 5 \begin{itemize} \item The machinery for growing and shrinking lists was optimized - for speed and for space efficiency. Small lists (under six bytes) - never over-allocate by more than one byte. Large lists do not + for speed and for space efficiency. Small lists (under six elements) + never over-allocate by more than one element. Large lists do not over-allocate by more than 1/8th. Appending and popping from lists now runs faster due to more efficient code paths and less frequent use of the underlying system realloc(). List comprehensions also