summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2023-04-09 01:59:08 (GMT)
committerGitHub <noreply@github.com>2023-04-09 01:59:08 (GMT)
commit63dc969ec6129704c3b23b384ecfa8e485d6c4cb (patch)
tree3dbf0c14e176caa2bde5754f12f310ce79c5141c
parentf329a8bc1e57e454852f8887df6267b42047cd1b (diff)
downloadcpython-63dc969ec6129704c3b23b384ecfa8e485d6c4cb.zip
cpython-63dc969ec6129704c3b23b384ecfa8e485d6c4cb.tar.gz
cpython-63dc969ec6129704c3b23b384ecfa8e485d6c4cb.tar.bz2
Document `asyncio` performance improvement in What's New (#103370)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
-rw-r--r--Doc/whatsnew/3.12.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 66e40ef..651caed 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -210,6 +210,11 @@ array
asyncio
-------
+* The performance of writing to sockets in :mod:`asyncio` has been
+ significantly improved. ``asyncio`` now avoids unnecessary copying when
+ writing to sockets and uses :meth:`~socket.socket.sendmsg` if the platform
+ supports it. (Contributed by Kumar Aditya in :gh:`91166`.)
+
* On Linux, :mod:`asyncio` uses :class:`~asyncio.PidfdChildWatcher` by default
if :func:`os.pidfd_open` is available and functional instead of
:class:`~asyncio.ThreadedChildWatcher`.