summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2019-02-16 20:02:22 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-02-16 20:02:22 (GMT)
commit63fa1cfece4912110ce3a0ff11fb3ade3ff5e756 (patch)
tree44f43ca234889b6884727c2411aca454b35626dc /Doc
parent3ff5962d2e9af2c35d09d39465397c6fa6e9965c (diff)
downloadcpython-63fa1cfece4912110ce3a0ff11fb3ade3ff5e756.zip
cpython-63fa1cfece4912110ce3a0ff11fb3ade3ff5e756.tar.gz
cpython-63fa1cfece4912110ce3a0ff11fb3ade3ff5e756.tar.bz2
bpo-32492: Add missing whatsnew entries for itemgetter and namedtuple (GH-11897)
https://bugs.python.org/issue32492
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.8.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 632c2a8..5d2451b 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -359,6 +359,17 @@ Optimizations
* :class:`uuid.UUID` now uses ``__slots__`` to reduce its memory footprint.
+* Improved performance of :func:`operator.itemgetter` by 33%. Optimized
+ argument handling and added a fast path for the common case of a single
+ non-negative integer index into a tuple (which is the typical use case in
+ the standard library). (Contributed by Raymond Hettinger in
+ :issue:`35664`.)
+
+* Sped-up field lookups in :func:`collections.namedtuple`. They are now more
+ than two times faster, making them the fastest form of instance variable
+ lookup in Python. (Contributed by Raymond Hettinger, Pablo Galindo, and
+ Serhiy Storchaka in :issue:`32492`.)
+
* The :class:`list` constructor does not overallocate the internal item buffer
if the input iterable has a known length (the input implements ``__len__``).
This makes the created list 12% smaller on average. (Contributed by Pablo