Lists are measured in elements not bytes.

This commit is contained in:
Raymond Hettinger 2004-02-13 21:50:27 +00:00
parent 55cf434735
commit 238b267bf6
1 changed files with 2 additions and 2 deletions

View File

@ -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