Commit 238b267b authored by Raymond Hettinger's avatar Raymond Hettinger

Lists are measured in elements not bytes.

parent 55cf4347
...@@ -260,8 +260,8 @@ yellow 5 ...@@ -260,8 +260,8 @@ yellow 5
\begin{itemize} \begin{itemize}
\item The machinery for growing and shrinking lists was optimized \item The machinery for growing and shrinking lists was optimized
for speed and for space efficiency. Small lists (under six bytes) for speed and for space efficiency. Small lists (under six elements)
never over-allocate by more than one byte. Large lists do not never over-allocate by more than one element. Large lists do not
over-allocate by more than 1/8th. Appending and popping from lists over-allocate by more than 1/8th. Appending and popping from lists
now runs faster due to more efficient code paths and less frequent now runs faster due to more efficient code paths and less frequent
use of the underlying system realloc(). List comprehensions also use of the underlying system realloc(). List comprehensions also
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment