[Python-checkins] Document `asyncio` performance improvement in What's New (#103370)

kumaraditya303 webhook-mailer at python.org
Sat Apr 8 21:59:15 EDT 2023


https://github.com/python/cpython/commit/63dc969ec6129704c3b23b384ecfa8e485d6c4cb
commit: 63dc969ec6129704c3b23b384ecfa8e485d6c4cb
branch: main
author: Kumar Aditya <59607654+kumaraditya303 at users.noreply.github.com>
committer: kumaraditya303 <59607654+kumaraditya303 at users.noreply.github.com>
date: 2023-04-09T07:29:08+05:30
summary:

Document `asyncio` performance improvement in What's New  (#103370)

Co-authored-by: Alex Waygood <Alex.Waygood at Gmail.com>

files:
M Doc/whatsnew/3.12.rst

diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 66e40ef7326c..651caed864fe 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`.



More information about the Python-checkins mailing list