Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-128002: add what's new docs for asyncio#134324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kumaraditya303 merged 2 commits intopython:mainfromkumaraditya303:docs
May 20, 2025
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletionsDoc/whatsnew/3.14.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1997,11 +1997,19 @@ Optimizations
asyncio
-------

*:mod:`asyncio` now uses double linked list implementation for native tasks
which speeds up execution by 10% on standard pyperformance benchmarks and
reduces memory usage.
*:mod:`asyncio` has a new per-thread double linked list implementation internally for
:class:`native tasks <asyncio.Task>` which speeds up execution by 10-20% on standard
pyperformance benchmarks and reduces memory usage.
This enables external introspection tools such as
:ref:`python -m asyncio pstree<whatsnew314-asyncio-introspection>`
to introspect the call graph of asyncio tasks running in all threads.
(Contributed by Kumar Aditya in:gh:`107803`.)

*:mod:`asyncio` has first class support for:term:`free-threading builds <free threading>`.
This enables parallel execution of multiple event loops across different threads and scales
linearly with the number of threads.
(Contributed by Kumar Aditya in:gh:`128002`.)

*:mod:`asyncio` has new utility functions for introspecting and printing
the program's call graph::func:`asyncio.capture_call_graph` and
:func:`asyncio.print_call_graph`.
Expand DownExpand Up@@ -2083,7 +2091,6 @@ Deprecated
*:class:`asyncio.WindowsProactorEventLoopPolicy`
*:func:`asyncio.get_event_loop_policy`
*:func:`asyncio.set_event_loop_policy`
*:func:`asyncio.set_event_loop`

Users should use:func:`asyncio.run` or:class:`asyncio.Runner` with
*loop_factory* to use the desired event loop implementation.
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp