From: Raymond Hettinger Date: Fri, 30 Dec 2016 06:49:20 +0000 (-0700) Subject: Clearer compact dict attribution to the original proposal X-Git-Tag: v3.6.1rc1~237 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51447db47c0f4c9f2ecf0e77b37b238cc947b3e0;p=python Clearer compact dict attribution to the original proposal --- diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst index 4cabb60b4c..2d483a26e5 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.