]> granicus.if.org Git - python/commit
Issue #28544: Implement asyncio.Task in C.
authorYury Selivanov <yury@magic.io>
Fri, 28 Oct 2016 16:52:37 +0000 (12:52 -0400)
committerYury Selivanov <yury@magic.io>
Fri, 28 Oct 2016 16:52:37 +0000 (12:52 -0400)
commita0c1ba608eb89b4e10155f7652c50a3ac0b709af
tree90e811ae976793876c5c04de7d91cbb7f1518fd9
parentbbcb79920b0e220c2e1b0e77db5aca2f3a2a52d4
Issue #28544: Implement asyncio.Task in C.

This implementation provides additional 10-20% speed boost for
asyncio programs.

The patch also fixes _asynciomodule.c to use Arguments Clinic, and
makes '_schedule_callbacks' an overridable method (as it was in 3.5).
Lib/asyncio/base_events.py
Lib/asyncio/base_futures.py [new file with mode: 0644]
Lib/asyncio/base_tasks.py [new file with mode: 0644]
Lib/asyncio/coroutines.py
Lib/asyncio/futures.py
Lib/asyncio/tasks.py
Lib/test/test_asyncio/test_tasks.py
Misc/NEWS
Modules/_asynciomodule.c
Modules/clinic/_asynciomodule.c.h [new file with mode: 0644]