mirror of
https://github.com/python/cpython.git
synced 2026-05-26 04:11:23 +00:00
Mention the optimization of list.extend().
This commit is contained in:
parent
70a30e8c94
commit
79b5cf1129
1 changed files with 2 additions and 0 deletions
|
|
@ -267,6 +267,8 @@ yellow 5
|
|||
use of the underlying system realloc(). List comprehensions also
|
||||
benefit. The amount of improvement varies between systems and shows
|
||||
the greatest improvement on systems with poor realloc() implementations.
|
||||
\method{list.extend()} was also optimized and no longer converts its
|
||||
argument into a temporary list prior to extending the base list.
|
||||
|
||||
\item \function{list()}, \function{tuple()}, \function{map()},
|
||||
\function{filter()}, and \function{zip()} now run several times
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue