Any Plans to Make Asyncio & Concurrent.futures Future Object accessible through the C-API?

I have a very genuine question about this because I am planning on making a new library where Future Objects over from CPython could be exposed to libraries such as cython for improved performance, I was planning on migrating pycares over from cffi (what it’s currently using) to cython so that there could be a bit better performance as well as improved speed and having access to Future Objects since my plan is to make the new rewrite completely async likely by default and it would further benefit these upcoming libraries as well as projects like uvloop and winloop which heavily rely on asyncio’s Future objects. Having direct access to the C-API would increase some of that performance by quite a bit because otherwise I will have to resort to recasting the Python Objects using a header file.

1 Like