mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
Add news entries for the dictionary optimizations.
This commit is contained in:
parent
0ce6dc8530
commit
ade08ea8a8
@ -264,7 +264,10 @@ yellow 5
|
||||
\begin{itemize}
|
||||
|
||||
\item The inner loops for \class{list} and \class{tuple} slicing
|
||||
were optimized and now run about one-third faster.
|
||||
were optimized and now run about one-third faster. The inner
|
||||
loops were also optimized for \class{dict} with performance
|
||||
boosts to \method{keys()}, \method{values()}, \method{items()},
|
||||
\method{\iterkeys()}, \method{\itervalues()}, and \method{iteritems()}.
|
||||
|
||||
\item The machinery for growing and shrinking lists was optimized
|
||||
for speed and for space efficiency. Small lists (under eight elements)
|
||||
|
@ -12,6 +12,10 @@ What's New in Python 2.4 alpha 1?
|
||||
Core and builtins
|
||||
-----------------
|
||||
|
||||
- Optimized dict iterators, creating separate types for each
|
||||
and having them reveal their length. Also optimized the
|
||||
methods: keys(), values(), and items().
|
||||
|
||||
- Implemented a newcode opcode, LIST_APPEND, that simplifies
|
||||
the generated bytecode for list comprehensions and further
|
||||
improves their performance (about 35%).
|
||||
|
Loading…
Reference in New Issue
Block a user