diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2023-04-09 01:59:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-09 01:59:08 (GMT) |
commit | 63dc969ec6129704c3b23b384ecfa8e485d6c4cb (patch) | |
tree | 3dbf0c14e176caa2bde5754f12f310ce79c5141c | |
parent | f329a8bc1e57e454852f8887df6267b42047cd1b (diff) | |
download | cpython-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.rst | 5 |
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`. |