cpython: whatsnew: random.getrandbits performance.

http://hg.python.org/cpython/rev/171224d8ec68 changeset: 88235:171224d8ec68 user: R David Murray <rdmurray@bitdance.com> date: Tue Dec 31 15:06:05 2013 -0500 summary: whatsnew: random.getrandbits performance. Also fix a NEWS file issue number error, and some spacing fixes in whatsnew. files: Doc/whatsnew/3.4.rst | 5 +++++ Misc/NEWS | 2 +- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -453,6 +453,7 @@ .. _whatsnew-tracemalloc: + tracemalloc ----------- @@ -902,6 +903,7 @@ using the new :mod:`enum` module. This allows descriptive reporting during debugging, instead of seeing integer "magic numbers". + ssl --- @@ -1198,6 +1200,9 @@ most cases. :class:`lzma.LZMAFile` has also been optimized. (Contributed by Serhiy Storchaka and Nadeem Vawda in :issue:`16034`.) +* :func:`random.getrandbits` is 20%-40% faster for small integers (the most + common use case). (Contributed by Serhiy Storchaka in :issue:`16674`). + Deprecated ========== diff --git a/Misc/NEWS b/Misc/NEWS --- a/Misc/NEWS +++ b/Misc/NEWS @@ -2518,7 +2518,7 @@ byte-compiled file is a symlink or non-regular file as a warning that import will not keep the file path type if it writes to that path. -- Issue #180022: Have site.addpackage() consider already known paths even when +- Issue #16972: Have site.addpackage() consider already known paths even when none are explicitly passed in. Bug report and fix by Kirill. - Issue #1602133: on Mac OS X a shared library build (``--enable-shared``) -- Repository URL: http://hg.python.org/cpython
participants (1)
-
r.david.murray