mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Lists are measured in elements not bytes.
This commit is contained in:
parent
55cf434735
commit
238b267bf6
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue