mirror of
https://github.com/python/cpython.git
synced 2025-09-28 19:25:27 +00:00
gh-97696: Move around and update the whatsnew entry for asyncio eager task factory (#104298)
This commit is contained in:
parent
9196da417d
commit
85f981880a
1 changed files with 5 additions and 5 deletions
|
@ -282,6 +282,11 @@ asyncio
|
||||||
writing to sockets and uses :meth:`~socket.socket.sendmsg` if the platform
|
writing to sockets and uses :meth:`~socket.socket.sendmsg` if the platform
|
||||||
supports it. (Contributed by Kumar Aditya in :gh:`91166`.)
|
supports it. (Contributed by Kumar Aditya in :gh:`91166`.)
|
||||||
|
|
||||||
|
* Added :func:`asyncio.eager_task_factory` and :func:`asyncio.create_eager_task_factory`
|
||||||
|
functions to allow opting an event loop in to eager task execution,
|
||||||
|
making some use-cases 2x to 5x faster.
|
||||||
|
(Contributed by Jacob Bower & Itamar O in :gh:`102853`, :gh:`104140`, and :gh:`104138`)
|
||||||
|
|
||||||
* On Linux, :mod:`asyncio` uses :class:`~asyncio.PidfdChildWatcher` by default
|
* On Linux, :mod:`asyncio` uses :class:`~asyncio.PidfdChildWatcher` by default
|
||||||
if :func:`os.pidfd_open` is available and functional instead of
|
if :func:`os.pidfd_open` is available and functional instead of
|
||||||
:class:`~asyncio.ThreadedChildWatcher`.
|
:class:`~asyncio.ThreadedChildWatcher`.
|
||||||
|
@ -644,11 +649,6 @@ Optimizations
|
||||||
* Speed up :class:`asyncio.Task` creation by deferring expensive string formatting.
|
* Speed up :class:`asyncio.Task` creation by deferring expensive string formatting.
|
||||||
(Contributed by Itamar O in :gh:`103793`.)
|
(Contributed by Itamar O in :gh:`103793`.)
|
||||||
|
|
||||||
* Added :func:`asyncio.eager_task_factory` and :func:`asyncio.create_eager_task_factory`
|
|
||||||
functions to allow opting an event loop in to eager task execution,
|
|
||||||
speeding up some use-cases by up to 50%.
|
|
||||||
(Contributed by Jacob Bower & Itamar O in :gh:`102853`)
|
|
||||||
|
|
||||||
|
|
||||||
CPython bytecode changes
|
CPython bytecode changes
|
||||||
========================
|
========================
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue