summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2018-01-27 08:53:43 (GMT)
committerGitHub <noreply@github.com>2018-01-27 08:53:43 (GMT)
commit2f050c7e1b36bf641e7023f7b28b451454c6b98a (patch)
tree01ee725ca174b0e7f1ba6f160916f891bebb5a38 /Doc/whatsnew
parenta49ac9902903a798fab4970ccf563c531199c3f8 (diff)
downloadcpython-2f050c7e1b36bf641e7023f7b28b451454c6b98a.zip
cpython-2f050c7e1b36bf641e7023f7b28b451454c6b98a.tar.gz
cpython-2f050c7e1b36bf641e7023f7b28b451454c6b98a.tar.bz2
bpo-32433: Optimized HMAC digest (#5023)
The hmac module now has hmac.digest(), which provides an optimized HMAC digest for short messages. hmac.digest() is up to three times faster than hmac.HMAC().digest(). Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.7.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index 43fbd01..133975a 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -492,6 +492,13 @@ and the ``--directory`` to the command line of the module :mod:`~http.server`.
With this parameter, the server serves the specified directory, by default it uses the current working directory.
(Contributed by Stéphane Wirtel and Julien Palard in :issue:`28707`.)
+hmac
+----
+
+The hmac module now has an optimized one-shot :func:`~hmac.digest` function,
+which is up to three times faster than :func:`~hmac.HMAC`.
+(Contributed by Christian Heimes in :issue:`32433`.)
+
importlib
---------