gh-136669: build `_asyncio` as static module (#136670) · wrongnull/cpython@b7d7225 · GitHub
Skip to content

Commit b7d7225

Browse files
pythongh-136669: build _asyncio as static module (python#136670)
`_asyncio` is now built as a static module so that thread states can be accessed directly via registers and avoids the overhead of function call.
1 parent 69d8fe5 commit b7d7225

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

Lines changed: 1 addition & 0 deletions

Modules/Setup.stdlib.in

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
############################################################################
3333
# Modules that should always be present (POSIX and Windows):
3434
@MODULE_ARRAY_TRUE@array arraymodule.c
35-
@MODULE__ASYNCIO_TRUE@_asyncio _asynciomodule.c
3635
@MODULE__BISECT_TRUE@_bisect _bisectmodule.c
3736
@MODULE__CSV_TRUE@_csv _csv.c
3837
@MODULE__HEAPQ_TRUE@_heapq _heapqmodule.c
@@ -193,3 +192,9 @@
193192
# Limited API template modules; must be built as shared modules.
194193
@MODULE_XXLIMITED_TRUE@xxlimited xxlimited.c
195194
@MODULE_XXLIMITED_35_TRUE@xxlimited_35 xxlimited_35.c
195+
196+
197+
# for performance
198+
*static*
199+
200+
@MODULE__ASYNCIO_TRUE@_asyncio _asynciomodule.c

Modules/_remote_debugging_module.c

Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)