]> granicus.if.org Git - python/commitdiff
Add news entries for the dictionary optimizations.
authorRaymond Hettinger <python@rcn.com>
Thu, 18 Mar 2004 09:48:12 +0000 (09:48 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 18 Mar 2004 09:48:12 +0000 (09:48 +0000)
Doc/whatsnew/whatsnew24.tex
Misc/NEWS

index 1607cc78fac60d1a6f70230f91b5dc1811b8bb60..b743a5ce7d11b19b4b93ee4f7c4c925afa8759ed 100644 (file)
@@ -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)
index d4aef1e76ab03ca59b149ba1a6cdc97f9259deb5..4a5589234c5fe5b25e2a55c3dd6d273ce30ae74c 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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%).