From 51447db47c0f4c9f2ecf0e77b37b238cc947b3e0 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 29 Dec 2016 23:49:20 -0700 Subject: [PATCH] Clearer compact dict attribution to the original proposal --- Doc/whatsnew/3.6.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst index 4cabb60b4c8..2d483a26e58 100644 --- a/Doc/whatsnew/3.6.rst +++ b/Doc/whatsnew/3.6.rst @@ -81,7 +81,9 @@ CPython implementation improvements: * The :ref:`dict ` type has been reimplemented to use a :ref:`more compact representation ` - similar to the `PyPy dict implementation`_. This resulted in dictionaries + based on `a proposal by Raymond Hettinger + `_ + and similar to the `PyPy dict implementation`_. This resulted in dictionaries using 20% to 25% less memory when compared to Python 3.5. * Customization of class creation has been simplified with the @@ -581,7 +583,10 @@ New :ref:`dict ` implementation --------------------------------------------- The :ref:`dict ` type now uses a "compact" representation -`pioneered by PyPy `_. +based on `a proposal by Raymond Hettinger +`_ +which was `first implemented by PyPy +`_. The memory usage of the new :func:`dict` is between 20% and 25% smaller compared to Python 3.5.